Hi All, My mail function is working perfectly on all browsers except IE, could you help me finding out why is this?... I thought i need different headers but still getting same problem. when clicking on the send button of my form the page doesnt work at all but if i try it from firefox or any other browser it works just fine!... any idea? ,.. here is my code
<?php
// at the start of your script
error_reporting(E_ALL);
init_set('display_errors', '1');
/*Subject and Email variables */
$emailSubject = 'New Customer Inquery from www.Franksmusicvideo.com!';
$webMaster = 'info@franksmusicvideo.com';
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$eventField = $_POST['event'];
$commentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Email: $emailField <br>
Name: $nameField <br>
Phone Number: $phoneField <br>
Event: $eventField <br>
Comments: $commentsField <br>
EOD;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/*Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://www.franksmusicvideo.com/ContactUs.htm">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center">Your email will be answered soon as possible!
You will return to Frank Music & Video in a few seconds !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>