Simple JavavScript needs email validation

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2005
Posts: 5
Reputation: realtureal is an unknown quantity at this point 
Solved Threads: 0
realtureal realtureal is offline Offline
Newbie Poster

Simple JavavScript needs email validation

 
0
  #1
Jan 12th, 2005
I made a simple javascript code but I am having problems validating the email. I am simply lost on how to do this. Can anyone help me on this?

:rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 5
Reputation: realtureal is an unknown quantity at this point 
Solved Threads: 0
realtureal realtureal is offline Offline
Newbie Poster

Re: Simple JavavScript needs email validation

 
0
  #2
Jan 13th, 2005
Originally Posted by realtureal
I made a simple javascript code but I am having problems validating the email. I am simply lost on how to do this. Can anyone help me on this?

:rolleyes:
If anyone knows of an information form that I can use that has validation for email, that would be helpful also.

On this form I need name, company name, email fax, tel, country, state and questions. The only thing that I need is to make sure they done leave the email blank, a pop up to remind them to fill in their email.

Any help is appreciated, thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Simple JavavScript needs email validation

 
0
  #3
Jan 13th, 2005
Post The Code, And I can help
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 5
Reputation: realtureal is an unknown quantity at this point 
Solved Threads: 0
realtureal realtureal is offline Offline
Newbie Poster

Re: Simple JavavScript needs email validation

 
0
  #4
Jan 14th, 2005
Thanks, Here it is I think this is the right way to post it

<font size="3" color="#000000" face="Arial,Helvetica,sans-serif"><input type="hidden" name="tlx_SortOrder" value="Name,Your Email,State,Country,Comments">
<input type="hidden" name="tlx_FormIndex" value="2">
<input type="hidden" name="tlx_OKMessage" value="Thank you for your request for information. We will respond back to you in a timely manner. If you forgot or didn't enter a vailid email address please hit the arrow to resend with a vaild email address. we can't contact you if you don't give us a valid return address. Your email address will never be placed on any list or traded.">
<input type="hidden" name="tlx_SendMode" value="1">
<input type="hidden" name="tlx_Subject" value="Email form Turf website">
<input type="hidden" name="tlx_EmailTo" value="uas@uas-cropmaster.com">
</font>
<table cellpadding="0" cellspacing="1" border="0" align="center" width="454">
<tr>
<td align="left"> Name:<br>
<input type="text" name="FirstName" size="50" maxlength="100">
</td>
</tr>
<tr>
<td align="left" height="51">Your Email:<br>
<input type="text" name="Email" size="50" maxlength="100">
</td>
</tr>
<tr>
<td align="left">State:<br>
<input type="text" name="State" size="50" maxlength="100">
</td>
</tr>
<tr>
<td align="left">Country:<br>
<input type="text" name="country" size="50" maxlength="100">
</td>
</tr>
<tr>
<td align="left">Comments:<br>
<textarea name="Comments" rows="5" cols="100"></textarea>
</td>
</tr>
<tr>
<td align="right">
<input type="reset" name="reset">
<input type="submit" value="Send" name="tlx_send">
</td>
</tr>
</table>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Simple JavavScript needs email validation

 
0
  #5
Jan 14th, 2005
http://www.aftermath.net/~coma/ex.html

Go There, Right Click on the page, and view source. That will give you all the code to do the javascript for validating the email (making sure the box is not empty, and it has an @ sign, etc). It also validates all the other fields, EXCEPT for the comments box... but you can just remove those if's and it will still work fine.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 5
Reputation: realtureal is an unknown quantity at this point 
Solved Threads: 0
realtureal realtureal is offline Offline
Newbie Poster

Re: Simple JavavScript needs email validation

 
0
  #6
Jan 14th, 2005
Thank you very much. My knowledge is real limited on forms. the previous form went through a third party to convert it into a email. I do not have the CGI option on my site. (to my knowledge) Do I activate this? Also can it be directed via a third party CGI hosting service? the one I build the form on was trelix and I still continued to use that link on this Form. Am I making any sense or do i need to contact my hosting company to set up properly? Sorry for my lack of knowledge.

Again I do thank you for the Script
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Simple JavavScript needs email validation

 
0
  #7
Jan 15th, 2005
However The Form i set up to set it up as email is the way to do it.... the thing is this: the form name (where it says <FORM NAME="datafrm"> MUST be in there for the javascript to work correctly. The thing is, it needs an ACTION so it knows who or what to contact with the information in the Form. Action should point to your 3rd party (most likely)
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 5
Reputation: realtureal is an unknown quantity at this point 
Solved Threads: 0
realtureal realtureal is offline Offline
Newbie Poster

Re: Simple JavavScript needs email validation

 
0
  #8
Jan 15th, 2005
Thanks Again. I am understanding that third party mean a CGI hosting service? Or can third party mean my website? If it can be directed to my web site, then I need to have my CGI option activated. AM I CORRECT in understanding this?

Note: you are listed as a Junior techie and I am listed as a Junior techie....However your knowledge is far greater then mine, so you should be promoted or I should be Demoted. You help is greatly appreciated, thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Simple JavavScript needs email validation

 
0
  #9
Jan 15th, 2005
Ok,

My question to you is this: when they click "submit" what is supposed to happen?


note: Thanks.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Simple JavavScript needs email validation

 
0
  #10
Jan 15th, 2005
When They click "submit" the page is supposed to pass that information to another program. That program can be a CGI, it can be an ASP file, it can even be another web page. What You need to know, is to who or what that information is going to go to? Is it going to be sent as an e-mail to someone? If so, how is it going to get to him?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC