i need help with my coding for my contact page...
im using flash and action script 3
the site is the5150crew.com - Contact Page
below i put my email.php code notice any errors?
when i test my file i get no errors but the email does not go thru...
<?php
$emailRecipient = "admin@the5150crew.com";
$emailHeaders = "From: admin@the5150crew.com\r\nContent-type: text/html\r\n";
$emailHeaders = "Reply-To: " .$_POST["userEmail"]. "\r\n";
$emailHeaders = "\r\n";
foreach ($_POST as $key => $value) {
$$key = stripslashes($value);
}
$emailBody = "<HTML>
<BODY>
<TABLE BORDER='1'>
<TR>
<TD align='left' width='780'>Email : ".$userEmail."</TD>
</TR>
<TR>
<TD align='left' width='780'>Name : ".$userName."</TD>
</TR>
<TR>
<TD align='left' width='780'>Message: <br><br>".$userMessage."</TD>
</TR>
</TABLE>
</BODY>
</HTML>";
if(mail($emailRecipient, "admin Form\n\n", $emailBody, $emailHeaders)){
echo "var1=success";
} else {
echo "var1=failure";
}
?>