I think this has a simple answer, but I just can't get it. Please help?!?
It's a simple email validation the first bit should pass the $email to the second bit, of course these are cut from a larger script. I keep getting errors... Thanks in advance.
<FORM METHOD="post" ACTION="email_do.php">
E Mail address:
<INPUT TYPE="text" NAME="email" SIZE=10 MAXLENGTH=25>
<br>
<input type=submit value="Go">
<input type=hidden name=email value="<? echo "$email"; ?>">
</FORM>
Passes to this...
<?
function is_valid_email($email) {
if(ereg("([[:alnum:]\.\-]+)(\@[[:alnum:] \.\-]+\.+)", $email)) {
$display1 = "Thankyou";
} else {
$display2 = "Try again";
}
}
?>
It's a simple email validation the first bit should pass the $email to the second bit, of course these are cut from a larger script. I keep getting errors... Thanks in advance.
<FORM METHOD="post" ACTION="email_do.php">
E Mail address:
<INPUT TYPE="text" NAME="email" SIZE=10 MAXLENGTH=25>
<br>
<input type=submit value="Go">
<input type=hidden name=email value="<? echo "$email"; ?>">
</FORM>
Passes to this...
<?
function is_valid_email($email) {
if(ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]
$display1 = "Thankyou";
} else {
$display2 = "Try again";
}
}
?>
