__md__ Posted October 13, 2009 Share Posted October 13, 2009 Can someone please help me with this php code which I have been stuck on for weeks . I am trying to send mail from a flash movie to an email address using php but the mail does not appear at the address at all. I am using php enabled server xampp and I have been told to make changes in the php config file which i have done but it still does not seem to work any help guys? this is the php code <?PHP $to = "[email protected]"; $subject = "Flash Contact Form Submission"; $message = "Name: " .$_POST['theName']; $message .="\nEmail: " . $_POST[$'theEmail']; $message .= "\n\nMessage: " .$_POST[$'theMessage']; $headers = "From: $theEmail"; $headers .= "\nReply-To: $theEmail"; mail($to,subject,$message,$headers); ?> the flash code (actionscript 2.0) stop(); var senderLoad:LoadVars = new LoadVars(); var recieveLoad:LoadVars = new LoadVars(); sender.onRelease = function () { senderLoad.theName = theName.text; senderLoad.theEmail = theEmail.text; senderLoad.theMessage = theMessage.text; senderLoad.sendAndLoad("http://duanmmm.co.uk/send.php",recieveLoad); } receiveLoad.onLoad = function() { if(this.sentOK) { _root.gotoandStop("success") } else { _root.gotoAndStop("failed"); } } Link to comment https://forums.phpfreaks.com/topic/177539-i-need-desperate-help-with-this-php-code-integrated-with-flash-please/ Share on other sites More sharing options...
johnsmith153 Posted October 13, 2009 Share Posted October 13, 2009 $message .="\nEmail: " . $_POST[$'theEmail']; $message .= "\n\nMessage: " .$_POST[$'theMessage']; should be: $message .="\nEmail: " . $_POST['theEmail']; $message .= "\n\nMessage: " .$_POST['theMessage']; Link to comment https://forums.phpfreaks.com/topic/177539-i-need-desperate-help-with-this-php-code-integrated-with-flash-please/#findComment-936108 Share on other sites More sharing options...
__md__ Posted October 13, 2009 Author Share Posted October 13, 2009 $message .="\nEmail: " . $_POST[$'theEmail']; $message .= "\n\nMessage: " .$_POST[$'theMessage']; should be: $message .="\nEmail: " . $_POST['theEmail']; $message .= "\n\nMessage: " .$_POST['theMessage']; lol a month of stress due to some small mistakes! thanks alot for helping me mate. Link to comment https://forums.phpfreaks.com/topic/177539-i-need-desperate-help-with-this-php-code-integrated-with-flash-please/#findComment-936118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.