Hi,
I have a form on this page – [url]http://www.organicspirit.co.uk/contact.php
It used to work but now when you hit submit, you get following message –
[I]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)
send_contact.php —————————————
<?php
// Contact subject
$subject = $_POST[‘subject’];
// Details
$message = $
// Mail of sender
$mail_from = $_POST[‘customer_mail’];
// From
$header = “from: $name <$mail_from>”;
// Enter your email address
$to = ‘
$send_contact = mail($to,$subject,$message,$header);
// Check, if message sent to your email
header (‘Location: [url]http://www.organicspirit.co.uk/thank-you.html’);
exit ();
if($send_contact){
echo “We’ve received your contact information”;
}
else {
echo “ERROR”;
}
?>
Thank you for your help!
P