Get 500 error when submit form
I have a form on this page - http://www.organicspirit.co.uk/contact.php using the script called "send_contact.php" when submitted.
It used to work but now when you hit submit, you get following message -
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Do I need to understand that the issue lies with the hosting provider or is there something wrong with my script (which I pasted below)
// Contact subject
$subject = $_POST['subject'];
$message = $_POST['detail'];
// Mail of sender
$mail_from = $_POST['customer_mail'];
$header = "from: $name <$mail_from>";
// Enter your email address
$to = 'email@example.com';
$send_contact = mail($to,$subject,$message,$header);
// Check, if message sent to your email
header ('Location: http://www.organicspirit.co.uk/thank-you.html');
echo "We've received your contact information";
Thank you for your help!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread