I have a very simple Contact Us Form below, but it does not seem to be sending email through to my email addresses anymore. I have a few slightly different PHP files for different forms but they all use the basic rules set below. Can anyone see any problems? PHP isn't my strong suit....

```
<form id="form" name="myemailform" method="post" action="submit.php">
     <h3>Contact Us</h3>
     <p>Please use this form to get in touch with us, Thanks...</p>
     <label>Name </label>
     <input name="name" type="text" id="name" />
     <label>Email </label>
     <input type="text" name="email" id="email" />
            <p class="antispam">Leave this empty:<br /><input name="url" /></p>
     <label>Comment </label>
     <textarea name="comment" id="comment"></textarea>
     <button type="submit" name='submit' value="submit">Send</button>
</form>

```

This uses a simple php script. By the way, the class `antispam` just hides the `url` field from view by using `display:none;`. I changed my email address in the example below.

```
<?php

// if the url field is empty
if(isset($_POST['url']) && $_POST['url'] == ''){

    // put your email address here
    $youremail = 'MYEMAILADDRESS@hotmail.com';

    $body = "Name     : $_POST[name] \n
    E-Mail   : $_POST[email] \n
    Message  : $_POST[comment]";

    if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) {
      $headers = "From: $_POST[email]";
    } else {
      $headers = "From: $youremail";
    }

    mail($youremail, 'Poiple Shadow - Web Message', $body, $headers );

    header('Location: Thank-You.htm');
}

?>

```