Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

62 users online



Help with a flash mail form

Help with a flash mail form

Currently viewing this thread: 1 (0 members and 1 guests)


anardash

anardash

Neverside Newbie
Status: Offline!

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 Sad 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)

nykoelle

nykoelle

Crazy Pants
Status: Offline!

i dont have flash instlaled anymore so i cant open your file, lol.

whats your actionscript look like, do you have the variable set right to reference the movie clip now? and how are you passing the output from the swf to the php

here's a tutorial.. tahts about all im good for anymore, looking up tutorials ha

http://www.kirupa.com/developer/actionscript/flash_php_email.htm

___________________

:: pop ::

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0159 seconds.