2016-10-05 76 views
0

我有一个PHP表单,在我的HTML中有一个提交按钮。 但是,当我按提交按钮我的浏览器给出了一个错误 - > HTTP错误500.PHP表单提交HTTP错误500

我在其他网站上使用相同类型的PHP表单,并在那里工作正常...任何人看到这里的问题?

下面代码片段中的表单和HTML。

<?php 

$lidworden = $_POST['lidworden'] 
$projectsponsoring = $_POST['projectsponsoring']; 
$leo = $_POST['leo']; 
$lion = $_POST['lion']; 
$andere = $_POST['andere']; 
$naam = $_POST['naam']; 
$email = $_POST['email']; 
$bericht = $_POST['bericht']; 

$to = "[email protected]"; 
$subject = "Leo Club de 4 Ambachten"; 
$body = "Dit is een automatisch bericht gelieve hier niet op te reageren. \n\n $lidworden,$projectsponsoring,$leo,$lion,$andere,$Naam,$Email,$Telefoon,$Bericht"; 

mail($to,$subject,$body); 
header("Location: index.html"); 

exit(); 
?> 
<form id="form" action="send.php" method="POST"> 

    <p id="radiotitle"><span class="bluetxt">Je bent</p> 

     <div id="radiodiv"> 
      <label class="label"> 
       <input type="radio" name="lidworden" value="lidworden" />geïnteresseerd om lid te worden 
      </label> 
      <label class="label"> 
       <input type="radio" name="projectsponsoring" value="projectsponsoring" />geïnteresseerd in projectsponsoring 
      </label> 
      <label class="label"> 
       <input type="radio" name="leo" value="leo"/>een Leo 
      </label> 
      <label class="label"> 
       <input type="radio" name="lion" value="lion"/>een Lion 
      </label> 
      <label class="label"> 
       <input type="radio" name="andere" value="andere"/>andere 
      </label> 
     </div> 

     <div id="textdiv"> 
        <label class="label2">Je naam</label> 
         <input type="text" name="naam" placeholder="Typ hier..." /> 

         <label class="label2">Je e-mailadres</label> 
          <input type="text" name="email" placeholder="Typ hier..." /> 

          <label class="label2">Je bericht</label> 
           <textarea type="text" name="bericht" value="bericht" placeholder="Typ hier..."></textarea> 

      <button type="submit" id="sendbutton"><p>VERSTUUR</p></button> 
     </div> 
    </form> 
+0

检查你的日志/使用错误报告 –

+0

基本经验法则:你得到一个500,你去看看服务器的错误日志。除非你有关于500的细节(或者至少有线索),否则其他任何东西都是随机在黑暗中徘徊。 –

+0

btw,'