I am sure this is a very easy problem for some of you guys. I am new to VBScript so its a little hard for me. I am trying to make a password form that verify that the password i typed in the first textbox is equal to the second text box heres the code i have...
<script language="VBScript">
Function VerifyPWD ()
If lcase(RegisterForm.Password.Value) = lcase(RegisterForm.verifypassword.value) then
else
Msgbox ("Please verify that the passwords match"
exit sub
end if
End Function
</script>
And this is where I call it...
<form name="registerform" method="post" action="register.asp" onSubmit="Call VerifyPWD()">
For some reason I keep getting the error "Cannot use parenthesis when calling a sub" any idea?
Thanks! Gordon R. Durgha
gd@vslink.net
<script language="VBScript">
Function VerifyPWD ()
If lcase(RegisterForm.Password.Value) = lcase(RegisterForm.verifypassword.value) then
else
Msgbox ("Please verify that the passwords match"
exit sub
end if
End Function
</script>
And this is where I call it...
<form name="registerform" method="post" action="register.asp" onSubmit="Call VerifyPWD()">
For some reason I keep getting the error "Cannot use parenthesis when calling a sub" any idea?
Thanks! Gordon R. Durgha
gd@vslink.net