Visualanté Posted January 12, 2007 Share Posted January 12, 2007 I created a flash form to email a response back from a website. I recieved the email with all the headings of the responses, but , none of the variables appear in the email. I used input text boxes and they match up with the php form variables. I checked the spelling and cannot figure out whats going on . So the summit works and I recieved the email but I just don't get the users information. Below here is the programming. im using flash8 exporting actionscript1//code//<?php $TextVariable = '&results='; $response = 'Data Sent. Thank You..'; echo $TextVariable; echo $response; $recipient .= "my email" ; $subject = "Contact from Site"; $message .= "Name: $fname Email: $email Phone: $phoneParty: $party"; $headers .= "From: $name <$email>n"; mail($recipient, $subject, $message, $headers); ?>//code//in flash//code//on (release) { // logical operator makes sure the textfield is not blank. IndexOf checks for "@" and "." characters in textfieldif (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) { results = "Please check your e-mail address."; } else if (!party.length) { results = "Please enter your party type."; } else if (!fname.length) { results = "Please enter your name."; } else if (!phone.length) { results = "Please enter your phone."; } else { loadVariablesNum ("http://eurobarmilwaukee.com/booking.php", 0, "GET"); results = "Sending Data..."; gotoAndPlay(51);} } Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/ Share on other sites More sharing options...
.josh Posted January 12, 2007 Share Posted January 12, 2007 in your php part, use $_GET['email'] etc.. instead of $email. Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158776 Share on other sites More sharing options...
.josh Posted January 12, 2007 Share Posted January 12, 2007 also, as far as your actionscript, if i'm not mistaken, loadVariablesNum receives variables, not sends them. You need to look into LoadVars.send Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158781 Share on other sites More sharing options...
Visualanté Posted January 12, 2007 Author Share Posted January 12, 2007 $_GET['email'] is this just for email.....or all variables Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158789 Share on other sites More sharing options...
.josh Posted January 12, 2007 Share Posted January 12, 2007 all of the vars (that's why i did the etc.. part) Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158791 Share on other sites More sharing options...
Visualanté Posted January 12, 2007 Author Share Posted January 12, 2007 whats the difference between publishing between actionscript1 or 2 Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158803 Share on other sites More sharing options...
.josh Posted January 12, 2007 Share Posted January 12, 2007 as far as publishing? well...nothing really... I mean, actionscript 2, like all newer versions, provides more features, versatility, etc.. it may require users to download the latest flash player. Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158816 Share on other sites More sharing options...
Visualanté Posted January 12, 2007 Author Share Posted January 12, 2007 ever since i went to flash8 my php doesnt work...was their a change.....now im tryingphp//code//on (release) { if (fname eq "" or phone eq "" or email eq "" or message eq "") { stop(); } else { loadVariablesNum("3point.php", 0, "POST"); gotoAndStop(41); }}//code//php//code//<?php$to = "myemail";$msg = "$fname\n\n";$msg .= "$phone\n\n";$msg .= "$email\n\n";$msg .= "$message\n\n";mail($to,"Cincere Feedback", $msg, "From: SimplyCincere\nReply-To: $contactemail\n");?>//code// Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158838 Share on other sites More sharing options...
.josh Posted January 12, 2007 Share Posted January 12, 2007 I get the impression that you haven't read any of the previous posts I've made. your actionscript should look like this:[code]varsToSend = new LoadVars();varsToSend.fname="blah";varsToSend.phone=1234567;// etc...then...varsToSend.send("3point.php","post");[/code]your php code[code]<?php if ($_POST) { $to = "myemail"; $subject = "hi am spamming you"; $msg = $_POST['fname'] . "\n\n"; $msg .= $_POST['phone'] . "\n\n"; // etc... $headers = "From: SimplyCincere\n"; $headers.= "Reply-To: [email protected]\n"; mail($to, $subject, $msg, $headers); }?>[/code] Link to comment https://forums.phpfreaks.com/topic/33839-problems-receiving-email-form-from-flash/#findComment-158858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.