Jump to content

PHP and Flash mail form....


satansmile

Recommended Posts

Hi folks, long time no post....

anyway I have an email form built in flash 2004 and using this action script, along with some PHP that i will paste in at the bottom, should send emails to me but it doesnt. Any ideas whats going wrong??

This is the actionscript from flash MX 2004::

on (release)

{

    if (name == "undefined" || message == "undefined" || email == "undefined")

    {

        gotoAndStop("error");

    }

    else

    {

        loadVariablesNum("emailform.php", 0, "POST");

        gotoAndStop("sending");

    } // end if

}

 

This is my PHP::

<?

 

//Get values from URL string

 

$name = $_POST['name'];

$message = $_POST['message'];

$email = $_POST['email'];

$subject = $_POST['subject'];

 

  $to = "[email protected]";

  $msg = "$name\n\n";

  $msg .= "$message\n\n";

 

 

  mail($to, $subject, $msg, "From:[email protected]\nReply-To: $email\n");

 

?>

 

From what I can gather it is correct. I have a demo online and I dont get the emails??

Thanks for helping.

Link to comment
https://forums.phpfreaks.com/topic/68829-php-and-flash-mail-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.