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="retur n
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="ChgPasswo rd">Change Password
</td>
</tr>
</table>
</FORM>
SCRIPT
If (eval("Document .This.ChgPasswo rd.Checked == True"))
{
Response.Redire ct("password.as p");
}
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="retur n
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="ChgPasswo rd">Change Password
</td>
</tr>
</table>
</FORM>
SCRIPT
If (eval("Document .This.ChgPasswo rd.Checked == True"))
{
Response.Redire ct("password.as p");
}
Thanks for your help.. I'm pretty new to this..
Comment