Help with a flash mail form
Hi everyone, i need help desperatly on the form i am creating, was working but all it says now is Waiting for http://www.anardash.com or Transfreing data from www.anardash.com,.,but does nothing, was working and acutally was sending mail to my email but i putted contact_form into a movie clip and it stoppped working
i will attach php and swf
Code:<?
if(!empty($HTTP_POST_VARS['sender_mail']) || !empty($HTTP_POST_VARS['sender_message']) || !empty($HTTP_POST_VARS['sender_subject']) || !empty($HTTP_POST_VARS['sender_name']) || !empty($HTTP_POST_VARS['sender_company']) || !empty($HTTP_POST_VARS['sender_phone']))
{
$to = "anardash@anardash.com";
$subject = stripslashes($HTTP_POST_VARS['sender_subject']);
$body = stripslashes($HTTP_POST_VARS['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$body .= "Company Name: " . $HTTP_POST_VARS['sender_company'] . " \n";
$body .= "Telephone: " . $HTTP_POST_VARS['sender_phone'] . " \n";
$body .= "Address: " . $HTTP_POST_VARS['sender_address'] . " \n";$header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>
and the flash file is at http://www.anardash.com/contact_form.swf
and the fla is at http://www.anardash.com/contact_form.fla
Last edited by anardash, January 17th, 2007 07:40 PM (Edited 1 times)
