Please help with multi eregi
| From: | W.D. | Date: | Wed, 28 Feb 2001 02:12:51 +0000 |
| Subject: | Please help with multi eregi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41937@lists.php.net to get a copy of this message | ||
I have this following if statement.....<?php
if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
then I need to check the following three strings with eregi....
(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))?
header("Location: http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
(eregi("^[a-z]$", $FirstName))?header("Location:
http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
(eregi("^[a-z]$", $LastName))?header("Location:
http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
?>
Ive tried several ways but cant get it too work right.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com