S
Sunshine
I have a form with a submit button. My idea was to have a checkbox.
In the validateform() right before the return true have it redirect to
another page if the checkbox was selected. I can't get the code to
work. Any suggestions?
Here's my code:
<FORM method="POST" ACTION="DoLogin.asp" name="This" onSubmit="return
validateForm()">
<input type="hidden" name="strNew" id="strNewPass" value="">
USERID:
<INPUT TYPE="text" NAME="strUser" VALUE="" SIZE="50" MAXLENGTH="50">
PASSWORD:
<INPUT TYPE="password" NAME="strPass" VALUE="" SIZE="50"
MAXLENGTH="50">
<input type="checkbox" name="ChgPassword">Change Password
</td>
</tr>
</table>
</FORM>
SCRIPT
If (eval("Document.This.ChgPassword.Checked == True"))
{
Response.Redirect("password.asp");
}
Thanks for your help.. I'm pretty new to this..
In the validateform() right before the return true have it redirect to
another page if the checkbox was selected. I can't get the code to
work. Any suggestions?
Here's my code:
<FORM method="POST" ACTION="DoLogin.asp" name="This" onSubmit="return
validateForm()">
<input type="hidden" name="strNew" id="strNewPass" value="">
USERID:
<INPUT TYPE="text" NAME="strUser" VALUE="" SIZE="50" MAXLENGTH="50">
PASSWORD:
<INPUT TYPE="password" NAME="strPass" VALUE="" SIZE="50"
MAXLENGTH="50">
<input type="checkbox" name="ChgPassword">Change Password
</td>
</tr>
</table>
</FORM>
SCRIPT
If (eval("Document.This.ChgPassword.Checked == True"))
{
Response.Redirect("password.asp");
}
Thanks for your help.. I'm pretty new to this..