Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2006, 02:32 AM   PM User | #1
hypewerx
New to the CF scene

 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hypewerx is an unknown quantity at this point
Question confirm email fields

I have the form validation thing down, but for some reason I can't seem to get a validate for 2 identical fields as in re-entering your email address to confirm you didn't drop a typo in there. I would like to do this without loading an external .js by the way...Can anyone kick some ideas my way??

Last edited by hypewerx; 01-24-2006 at 02:46 AM..
hypewerx is offline   Reply With Quote
Old 01-24-2006, 03:25 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Code:
if (f.email.value != f.emailConfirm.value){
   alert("Email address must be the same.");
   return false;
}
where "f" is the form reference and "email" and "emailConfirm" are the email field names.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-24-2006, 01:23 PM   PM User | #3
hypewerx
New to the CF scene

 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hypewerx is an unknown quantity at this point
wow, that was easy. Thanks for the help
hypewerx is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:12 PM.


Advertisement
Log in to turn off these ads.