View Full Version : Validate a email adress

01-13-2003, 02: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="" method="POST">
<input type=hidden name="redir"

<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">

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

01-13-2003, 01: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) {

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum