...

View Full Version : Validate a email adress



stevan
01-13-2003, 03:57 AM
Could some show a script i can install in the following email script to make sure they insert a correct email adress and where to install is at

Thxs STeve

<form action="http://207.235.6.119/cgi-bin/nmail.pl" method="POST">
<input type=hidden name="redir"
value="http://www.cruisewarehouse.cc/thank.html">


<input type=hidden name="to" value="Subscribe@cruisewarehouse.cc">





First Name: <input type=text name="FirstName" size="20"><br>
Email Adress: <input type=text name="EmailAdress" size="20">
<P align=center>

<input type=submit value="Submit Form">

Leeus
01-13-2003, 09:40 AM
See http://www.codingforums.com/showthread.php?s=&threadid=12644

chrismiceli
01-13-2003, 02:26 PM
if you don't know regexp, you can use the cheap dirty way, which is nowhere near as good


test = document.formname.inputname.value;
if (test.indexOf("@")==-1) {
//incorrect
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum