Connect with Expertise | Find Experts, Get Answers, Share Insights

Flash MX radio button vars passed to a PHP form.. Stumped

 
Join Date: Nov 2006
Posts: 8
#1: Nov 30 '06
Please help!

Does anyone know how to set up radio buttons to send their info from flash to a PHP script that will email me the results? I have been trying to get this thing to work for weeks, and I still can not get it to work right.

Right now, I have a survey that looks like this, and it sends the input text just fine, but when I get the email, all the radio button info is not there.

I can provide files or code if it helps. I really just need a working sample .fla and PHP code of more than one radio button and maybe 2 imput text boxes that the vars are sent to the form.php and emailed to me.

Thanks in advance!

 
Join Date: Feb 2007
Posts: 1
#2: Feb 7 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


you still need this script
 
Join Date: Feb 2007
Posts: 4
#3: Feb 27 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


you still need this script
I need the script if you have it PLEASE.
SJL
 
Join Date: Mar 2007
Posts: 1
#4: Mar 13 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


I'm having the same problem. Did you ever find the answer??
iam_clint's Avatar
E
M
C
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#5: Mar 13 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


Let me see your php code... thats more than likely where you are erroring out.
 
Join Date: Feb 2007
Posts: 4
#6: Mar 13 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


I am postitive that my php is wrong, i also dont have any actionscript on my buttons either, i have them labled by group name but that is the only indicator.
 
Join Date: Feb 2007
Posts: 4
#7: Mar 14 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


Let me see your php code... thats more than likely where you are erroring out.

The site is andrewandtessa.com to see the form click on the rsvp section.

Here is my php.

<?php

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .

$_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";

$headers .= "Return-path: ". $_POST["firstName"] . $_POST["email"];

$message = $_POST["message"] . $_POST["RSVP"];

?>

And on my flash they are all input text fields with variables, but i have no clue what to do with the radio buttons they are labled by group name RSVP but that is it.

Please Help.

Thanks
iam_clint's Avatar
E
M
C
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#8: Mar 14 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


request the groupname $_POST




it should return the value.



if it doesn't you have to loop through it and check for if its checked.
 
Join Date: Feb 2007
Posts: 4
#9: Mar 14 '07

re: Flash MX radio button vars passed to a PHP form.. Stumped


What should that look like though? Cause i have it requested after the message one and it isnt working should it be its on line? and where should it go? should it be this:

<?php

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .

$_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";

$headers .= "Return-path: ". $_POST["firstName"] . $_POST["email"];

$message .= $_POST["message"];

$message .= $_POST["RSVP"];

?>

or this?

<?php

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .

$_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";

$headers .= "Return-path: ". $_POST["firstName"] . $_POST["email"];

$headers .= $_POST["RSVP"];

$message .= $_POST["message"];

?>
Reply