Re: [PHP] validating fields

2001-03-08 Thread W.D.
Actually I tried a variation of what you gave me before and it didnt work. I couldnt get yours to validate thanks. heres what I used ?php if (getenv("REQUEST_METHOD") == "POST") { if ( eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email)

Re: [PHP] validating fields

2001-03-08 Thread Simon Garner
From: "W.D." [EMAIL PROTECTED] Actually I tried a variation of what you gave me before and it didnt work. I couldnt get yours to validate thanks. heres what I used ?php if (getenv("REQUEST_METHOD") == "POST") { if (

Re: [PHP] validating fields

2001-03-08 Thread Philip Olson
Consider seperating the checks and tell the user what they did and didn't do correctly as that way you can put the incorrect fields in bold and red fonts! Users LOVE that. And little custom messages like "Yo, your email of $email is incorrect and what kind of first name is $firstname?!" And

[PHP] validating fields

2001-03-01 Thread W.D.
I dont know how to do this, but Ive tried several things with no success. I need to validate several form fields and here is the script I'm working with... ?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") { (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? header("Location:

Re: [PHP] validating fields

2001-03-01 Thread Simon Garner
From: "W.D." [EMAIL PROTECTED] I dont know how to do this, but Ive tried several things with no success. I need to validate several form fields and here is the script I'm working with... ?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") {