Hello, i need help with my flash website…the button is working but I think there is a problem in the contact.php
Could someone help me figure out if there is a syntax issue?
the website is functioning www.KirkPhylles.com
Thanks you so much
kirk
<?php
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
if(empty($_POST['php_mail'])){
//echo"no email address found";
echo "retval=0";
exit;
}
$senderName = $_POST['php_name'];
$senderEmail = $_POST['php_mail'];
$senderMsg = nl2br($_POST['php_message']);
$sitename = "http://shuhanarts.com";
$to = "
[email protected]";
$ToName = "shuhankuang";
$date = date("m/d/Y H:i:s");
$ToSubject ="Message from $sitename";
$comments = $msgPost;
$EmailBody = "A visitor to $sitename has left the following information
Sent By: $senderName, Email : $senderEmail
Message Sent:
$senderMsg
";
$EmailFooter = "
Sent: $date
";
$Message = $EmailBody.$EmailFooter;
$ok = @mail($to, $ToSubject, $Message, $headers . "From:$senderName");
if($ok){
echo "retval=1";
}else{
echo "retval=0";
}
?>