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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to