Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Multiple email address validation script
Old 11-22-2006, 04:53 PM Multiple email address validation script
Skilled Talker

Posts: 81
Trades: 0
Hi folks

I am using this comprehensive script
http://javascript.internet.com/forms...alidation.html

to validate a form email address input.

However, I'd now like to validate two different addresses on the same form.

onSubmit="return emailCheck(this.email.value)"

The code to check email name 'email' is
onSubmit="return emailCheck(this.email.value)"

So I am just wondering how to put two checks on two different email inputs. I have not got it to work so far!

Thanks for any ideas

Best wishes

Tony

Last edited by soon; 11-22-2006 at 04:54 PM..
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
 
Register now for full access!
Old 11-22-2006, 07:51 PM Re: Multiple email address validation script
logic ali's Avatar
Super Talker

Posts: 104
Trades: 0
Quote:
Originally Posted by soon View Post
Hi folks

I am using this comprehensive script
http://javascript.internet.com/forms...alidation.html

to validate a form email address input.

However, I'd now like to validate two different addresses on the same form.

onSubmit="return emailCheck(this.email.value)"

The code to check email name 'email' is
onSubmit="return emailCheck(this.email.value)"

So I am just wondering how to put two checks on two different email inputs. I have not got it to work so far!
Try:
Code:
onSubmit="return emailCheck(this.email.value)&&emailCheck(this.email2.value)"
logic ali is offline
Reply With Quote
View Public Profile
 
Old 11-22-2006, 08:38 PM Re: Multiple email address validation script
Skilled Talker

Posts: 81
Trades: 0
Cool, that works fine, thanks!
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
Reply     « Reply to Multiple email address validation script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23581 seconds with 12 queries