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


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