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.

Coding Forum


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



Reply
Validating email address
Old 12-12-2004, 05:53 PM Validating email address
wvmlt's Avatar
Experienced Talker

Posts: 46
Trades: 0
I have this bit of code to make sure an email address is entered

Code:
if (theForm.frmEmail.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.frmEmail.focus();
    return (false);
  }

It only checks to make sure something is entered. You can just enter 1 character and it accepts it as an email address. How can I change this bit of code so that it at least checks there is an "@" entered?
wvmlt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-12-2004, 06:07 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Here ya go:
http://www.acjavascripts.com/grab_ja....php?id=48&c=9
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Reply     « Reply to Validating email address
 

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.10394 seconds with 12 queries