title: HTTP ERROR 500 contact form
body: <p>I just implemented a php contact form, but its throwing a HTTP ERROR 500 when I fill out the form and hit the submit button. </p>
  
  <p>Im using the following html markup and php code. Theres no ini.php in the root folder, which I found as most answers on my problem.</p>
  
  <pre><code>&lt;form action="php/mail.php" method="post" enctype="multipart/form-data"&gt;
       &lt;input name="sender_name" placeholder="Your Name..."/&gt;
       &lt;input name="sender_email" placeholder="Your email..."/&gt;
       &lt;textarea placeholder="Your Message..." name="sender_message"&gt;&lt;/textarea&gt;
       &lt;div class="captcha_wrapper"&gt;
           &lt;div class="g-recaptcha" data-sitekey="placeholder"&gt;&lt;/div&gt;
       &lt;/div&gt;
       &lt;button type="submit" id="send_message"&gt;Send Message!&lt;/button&gt;
  &lt;form&gt;
  
  
  &lt;?php
      $sender_name=stripslashes($_POST["fullname"]);
      $sender_email=stripslashes($_POST["email"]);
      $sender_message=stripslashes($_POST["message"]);
      $secret="6LdFvi0UAAAAAD21HxZ1KkptlAIq06K12d8sTMWn";
      $response=$_POST["g-recaptcha-response"];  
   $verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secret}&amp;response={$response}");
      $captcha_success=json_decode($verify);
      $subject="Important Message".$_POST['subject'];
      $headers= "From: ".$_POST['email']."\n";
      $headers.='Content-type: text/html; charset=iso-8859-1';
      $headers1="From: "."hello@placeholder.com"."\n";
      $headers1.='Content-type: text/html; charset=iso-8859-1';
      $success = mail("hello@placeholder.com", $subject,"Important Message You’ve received a message from YOUR website.
      Message: “.$_POST[‘message’].”
      Please Contact: “.$_POST[‘fullname’].”
      Phone: “.$_POST[‘phone’].”
      Email: “.$_POST[’email’].” ” , $headers);@mail($_POST[’email’],’YOUR-NAME’,$body1,$headers1);
      if ($captcha_success-&gt;success==false) {
          echo “You are a bot! Go away!”;
      } else if ($captcha_success-&gt;success==true) {
         print “”;  
      }
  ?&gt;
  </code></pre>
  
  <p>You can test it at: <a href="http://atelier-rauen.de/test/contact" rel="nofollow noreferrer">http://atelier-rauen.de/test/contact</a></p>
  
  <p>Is it a problem with permissions on the server? The php folder has 0755 and the php file 0644.</p>
  
  <p>Thank you for your help!</p>