hello
i had no problems with my php send email code until couple weeks ago. Now, sporadically I will get empty emails. I do have js validation, so customer is forced to enter information and not be able to submit the form without it. ( I understand that people can disable js in the browser)
Can anyone help me and let me know why the form sends empty info:
<?
$name = $POST['name'];
stripslashes($name);
$toaddress = "correctemail@yahoo.com, correctemail@mac.com";
$subject = "Contact Us Form";
$mailcontent = "Name: ".$name."\n"
."Subject: ".$POST['subject1']."\n"
."Comments: ".$POST['comments']."\n"
."E-mail: ".$POST['email']."\n\n";
$fromaddress = "EMAIL FROM WEBSITE";
mail($toaddress,$subject,$mailcontent, $fromaddress);
?>
this is the code. Thank you!!!