a0511611.xsph.ru/contact.html

при отправке возникает ошибка 500.
в чем может быть проблема?
<form action="" method="POST" id="form">
<label for="name">First Name</label>
<input type="text" id="name" name="name" placeholder="Your name..">
<label for="phone">Phone</label>
<input type="text" id="phone" name="phone" placeholder="Your phone..">
<label for="email">Email</label>
<input type="text" id="email" name="email" placeholder="Your email..">
<label for="textareafield">Your comment</label>
<!--<textarea id="textareafield" name="textareafield" placeholder="Text your comment here"></textarea>-->
<input type="submit" value="Submit">
</form>
<script>
$(document).ready(function(){
$("#form").submit(function() {
var form_data = $(this).serialize();
$.ajax({
type: "POST",
url: "form.php",
data: form_data,
success: function () {
alert('good');
},
error: function () {
alert('возникла ошибка');
}
});
return false;
});
});
</script>
<?php
if((isset($_POST['phone'])&&$_POST['phone']!="")&&(isset($_POST['name'])&&$_POST['name']!="")
){
$to = 'test@gmail.com';
$subject = 'Заявка chupa';
$phone = $_POST['phone'];
$email = $_POST['email'];
$name = $_POST['name'];
$message='
<html>
<head>
<title>'.$subject.'</title>
</head>
<body>
<p>'.$name.'</p>
<p>Телефон: '.$phone.'</p>
<p>Почта: '.$email'</p>
</body>
</html>';
$headers = "Content-type: text/html; charset=utf-8 \r\n";
$headers .= "From: test@gmail.com\r\n";
mail($to, $subject, $message, $headers);
}
?>