what I'm trying to do is to make it so that if the "email address" field is not filled out, and error message appears stating that one of the required fields has not been properly filled out. this is the code I have so far.
<?
if (isset($_POST['name'])) {
$name=$_POST['name'];
$address=$_POST['address'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$textarea=$_POST['textarea'];
$to="myaddress@gmail.com";
mail($to,$textarea,"From: $email\n");
echo "Thanks for your message.";
}
if (!isset($_POST['name'])) {
?>
(this doesnt include the HTML code.