satansmile Posted September 11, 2007 Share Posted September 11, 2007 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 = "phillip.shaw@mail.com"; $msg = "$name\n\n"; $msg .= "$message\n\n"; mail($to, $subject, $msg, "From:website@innocence.co.uk\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. Quote Link to comment https://forums.phpfreaks.com/topic/68829-php-and-flash-mail-form/ Share on other sites More sharing options...
gerkintrigg Posted September 11, 2007 Share Posted September 11, 2007 besides the lack of seperating parentheses, (brackets) around your if conditions, I think the error lies with not parsing the variables to the URL for the script to grab. Quote Link to comment https://forums.phpfreaks.com/topic/68829-php-and-flash-mail-form/#findComment-345971 Share on other sites More sharing options...
satansmile Posted September 11, 2007 Author Share Posted September 11, 2007 For some reason this works now??? Maybe there was some sort of delay on my server cos I am recieving the emails between 7-10mins later than I inputed the data on the site, Nonetheless thanks for looking, -::MOD PLEASE CLOSE::- Quote Link to comment https://forums.phpfreaks.com/topic/68829-php-and-flash-mail-form/#findComment-345973 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.