richardhowell
Instructor
== Environment: Ultradev 4, Java ==
I'm having a pretty frustrating time trying to do (what should be) some simple validation on an input form for registration. I just want to compare the password entry with the "Confirm Password" entry for equality. If not equal, redirect to a page telling them to go back and try again.
The closest I've got is with the following statement which compares the string(request.form) values
if(String(Request.Form("fldpw1" !== String(Request.Form("fldpw2") ))
{
Response.Redirect('pw_err.asp');
}
...... but this directs me to pw_err page UNCONDITIONALLY.
I'm new to Java by the way!
Anybody help? Hope so.
Richard
P.S. Please don't direct me to Yaromat's Check Form. That simply doesn't work!
I'm having a pretty frustrating time trying to do (what should be) some simple validation on an input form for registration. I just want to compare the password entry with the "Confirm Password" entry for equality. If not equal, redirect to a page telling them to go back and try again.
The closest I've got is with the following statement which compares the string(request.form) values
if(String(Request.Form("fldpw1" !== String(Request.Form("fldpw2") ))
{
Response.Redirect('pw_err.asp');
}
...... but this directs me to pw_err page UNCONDITIONALLY.
I'm new to Java by the way!
Anybody help? Hope so.
Richard
P.S. Please don't direct me to Yaromat's Check Form. That simply doesn't work!