Hey there,
I have an ASp page that i am using vbscript with to set some values to hidden input boxes and post the form. I am having trouble getting a value from a textbox using the document.textboxID.value in my vbscript and i can't figure out why. Any help would eb greatly appriciated.Thanks.
Here is the code!
<%@ Language=VBScript %>
<HTML>
<HEAD>
<%
user = document.txtLoginID.value
if user = "" then
else
sql="select URL from table where field ='"& user &"'"
oRs=cc.execute(sql)
url=oRs(0)
end if
%>
</HEAD>
<body>
<form id="Form2" name="LoginForm" method=post action="<=url%>" runat=server>
<INPUT id="txtLoginID" type="text" size="13" NAME="LoginID">
I have an ASp page that i am using vbscript with to set some values to hidden input boxes and post the form. I am having trouble getting a value from a textbox using the document.textboxID.value in my vbscript and i can't figure out why. Any help would eb greatly appriciated.Thanks.
Here is the code!
<%@ Language=VBScript %>
<HTML>
<HEAD>
<%
user = document.txtLoginID.value
if user = "" then
else
sql="select URL from table where field ='"& user &"'"
oRs=cc.execute(sql)
url=oRs(0)
end if
%>
</HEAD>
<body>
<form id="Form2" name="LoginForm" method=post action="<=url%>" runat=server>
<INPUT id="txtLoginID" type="text" size="13" NAME="LoginID">