help with branching eregi
| From: | W.D. | Date: | Wed, 28 Feb 2001 00:03:14 +0000 |
| Subject: | help with branching eregi | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41921@lists.php.net to get a copy of this message | ||
this script isnt working like I want it....mainly I need multiple eregi() to
check fields
<?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$",
$Email))&&(eregi("^[a-z]$", $FirstName))&&(eregi("[a-z]$",
$LastName))?
header("Location: http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
} session_start();?>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com