I'm having a bit of a problem with e-mail format checking on my form. I can check stuff like the inputed feilds that are not filled in and display an error message, so I know its the e-mail biit thas not working. The porblem is that the error message I set displays for every e-mail addressm, even if its right. I'll get the exact code i used at a later date, but here is as exact as i can get it:
$_name = "#lots of characters, in a specific order"
$_host = "#same as above"
$_end = "#letters"
if ($email !preg_match($_name"."$_host"."$_end)
{
echo("e-mail address has incorrect format...")
}
or something like that anyway. why is it not working? help == muchas appreciated!