title: Contactform was working not anymore what did i mess up?
body: <p>I was working on this contact form, it was working but now not anymore. I have no idea what i did wrong or did i mess something up? 
  I really hope someone will be able to help, or some tips what would work better?
  Already thank you!</p>
  
  <pre><code>     &lt;?php
      $submit=$_POST['Submit'];
      if($submit == Submit){
      $status = "OK";
      $email=$_POST['email'];
      $message=$_POST['message'];
      $subject=$_POST['subject'];
      $titel=$_POST['titel'];
      $naam=$_POST['naam'];
      $bedrijfsnaam=$_POST['bedrijfsnaam'];
      $phone=$_POST['phone'];
  
      $msg="";
      $msgerror="";
      //error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
  
  
  if ( strlen($naam) &lt; 1 ){
      $msgerror=$msgerror."* No name.&lt;BR /&gt;";
      $status= "NOTOK";}  
  
  if ( strlen($message) &lt; 3 ){
      $msgerror=$msgerror."* No message.&lt;BR/&gt;";
      $status= "NOTOK";}  
  
  if (!stristr($email,"@") OR !stristr($email,".")) {
      $msgerror=$msgerror."* No email&lt;BR /&gt;";
      $status= "NOTOK";}   
  
  if ( strlen($phone) &lt; 6 ){
      $msgerror=$msgerror."* No phone.&lt;BR /&gt;";
      $status= "NOTOK";}  
  
  
  if($status=="OK"){// echo $query;
      $headers="";
      $headers4="info@abc.com"; // Fake address //
      $headers.="Reply-to: $headers4\n";
      $headers .= "From: $headers4\n";
      $headers .= "Errors-to: $headers4\n";
      $headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;
  mail($headers4,$subject,"Contact &lt;BR&gt;
  
  Titel:$titel
  &lt;BR&gt;Naam:$naam
  &lt;BR&gt;Bedrijfsnaam:$bedrijfsnaam
  &lt;BR&gt;Email:$email
  &lt;br&gt;Telefoonnummer:$phone
  &lt;br&gt;Comments: $message","$headers");
  $msg="Thank you!.";
  }
      }
  ?&gt;
  
  
  
  &lt;div id="form"&gt;
                  &lt;?php if($msg) { ?&gt;&lt;div class="success"&gt;&lt;p&gt;&lt;? echo $msg; ?&gt;&lt;/p&gt;&lt;/div&gt;&lt;? } ?&gt;
                  &lt;?php if($msgerror) { ?&gt;&lt;div class="error"&gt;&lt;?php echo $msgerror; ?&gt;&lt;/div&gt;&lt;?php } ?&gt;
  
                          &lt;form action="contact.php" method="post" name="form1" id="form1"&gt;
  
                              &lt;label&gt;Titel:&lt;/label&gt;
                              &lt;input type="radio" name="titel" value="Dhr."  class="rad"    /&gt; Dhr.      
                              &lt;input type="radio" name="titel" value="Mevr."  class="rad"  /&gt; Mevr.    &lt;br /&gt;
  
                              &lt;label&gt;Naam: *&lt;/label&gt;
                              &lt;input type="text" name="naam" class="input" /&gt;          &lt;br /&gt;
  
                              &lt;label&gt;Bedrijfsnaam:&lt;/label&gt;
                              &lt;input type="text" name="bedrijfsnaam" class="input" /&gt;          &lt;br /&gt;
  
                              &lt;label&gt;Mijn bericht betreft een:&lt;/label&gt;
                              &lt;select name="subject"&gt;
                              &lt;option&gt;Maak uw keuze&lt;/option&gt;
                                  &lt;option value="Offerte"&gt;Offerte&lt;/option&gt;
                                  &lt;option value="Vraag"&gt;Vraag&lt;/option&gt;
                                  &lt;option value="Opmerking"&gt;Opmerking&lt;/option&gt;
                              &lt;/select&gt;   &lt;br /&gt;
  
                              &lt;label&gt;Bericht: *&lt;/label&gt;
                              &lt;textarea name="message" rows="" cols=""&gt;&lt;/textarea&gt;    &lt;br /&gt;
  
                              &lt;label&gt;E-mailadres: *&lt;/label&gt;
                              &lt;input type="text" name="email" class="input" /&gt;        &lt;br /&gt;
  
                              &lt;label&gt;Telefoonnummer: *&lt;/label&gt;
                              &lt;input type="text" name="phone" class="input" /&gt;        &lt;br /&gt;
  
                          &lt;div class="indent"&gt; 
                              &lt;input type="hidden" name="Submit" value="Submit" /&gt;
                              &lt;input name="submit" class="" type="image" src="images/submit_button.gif" value="Send Message"/&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  
                  &lt;/div&gt;  
  </code></pre>
  
  <p>//// Like this? ///</p>
  
  <pre><code>if($status=="OK"){// echo $query;
      $headers="";
      $headers.="info@abc.com"; // Fake address //
      $headers.="Reply-to: $headers4\n";
      $headers.= "From: $headers4\n";
      $headers.= "Errors-to: $headers4\n";
      $headers.= "Content-Type: text/html; charset=iso-8859-1\n".$headers;
  mail($headers.,$subject,"Contact &lt;BR&gt; 
  </code></pre>