Forum Moderators: open

Message Too Old, No Replies

javascript to verify 2 fields match

         

mgworek

6:00 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



after doing some search this is the code I put in but all it ends up doing is breaking my entire script i have written.

if (pass!= pass1) {
alert ("Your passwords do not match. Please try again.")
return false;
}

earlier in the script i have and these work to just make sure a value was entered in the field.
pass=signup.user_password.value;
pass1=signup.user_password1.value;

my script on whole that i have works untill i had the above code. it just skips the entire script with it in.

Any idea's?

mgworek

6:21 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



never mind, i feel like a dork.

I thought i cut and pasted when i just copied and pasted, so my first go at it was still in there.

sorry