Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
|
Apart form the fact that that isn't well coded in terms of readability, it seems your main problem is that you have declared $subject. Or message, at least I can't see where you have.
PHP Code:
mail($a1[0], $_POST[subject], $_POST[message], $mailheaders);
Having said that, the line if(empty($message)) seems to be working fine, even though $message hasn't been declared. Oh well.
p.s. You need an apostrophe in email(')s.<br> won't validate also. You want <br /> actually, most of the above won't validate. Oh and <center> is deprecated.
|