hi guys
i have been building a website and have added a contact form and PHP script to send me a email server side the script works as it it will refresh the pages and display my thank you message but no email ever turns up my email address is correct so there must be somthing else not working
<?php
/*Email Varibles*/
$emailSubject = 'media-ondemand-contact.php';
$webMaster = '
[email protected]';
/*Data Varibles*/
$email = $_POST['email'];
$name = $_POST['name'];
$radiobuttons = $_POST['radiobuttons'];
$where = $_POST['where'];
$comments = $_POST['comments'];
$newsletter = $_POST['newsletter'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Suggestions Ect: $radiobuttons <br>
Where did you hear about us: $where <br>
Comments: $comments <br>
News Letter Sign up: $newsletter
$headers = "$email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
EOD;
$theResults = <<<EOD
<html>
<head>
<meta http-equiv="refresh" content="3;//media-ondemand.com">
<title>Sent Message</title>
<style type="text/css">
<!--
body {
text-align: center;
font-family: Verdana, Geneva, sans-serif;
font-size: 36px;
font-weight: bold;
font-variant: normal;
color: #666;
}
-->
</style>
</head>
<body>
<p>Thank You</p>
<p> Your Message Has Been Sent </p>
</body>
</html>
EOD;
echo "$theResults";
?>
the contact page is at www.media-ondemand.com/contact.html