binx4life Posted November 14, 2006 Share Posted November 14, 2006 Hi, I am in a jam. I made a flash survey that has input text boxes and radio buttons. I want it to send the data to a PHP form that will email me the results. As of now, I have it so that I get the email, and all the input text box info is there, but the radio button info is not. Also, when I click the submit, it pops up a blank page with the path to my form.php file as the URL. I am at a lose as to what I am doing wrong. All I can do is post the files for what I have so far. I am not a programmer, so this is harder for me to figure out. I really need to know why I can not get the info from my radio buttons to send in the email with the input text info. Any help would be great.The actionscript on the first frame of the timeline that my survey is on:[code]lo= new Object();lv = new LoadVars();lo.click = function(evt_obj:Object) { lv.evt_obj.target.groupName = evt_obj.target.selection.data; };// all the radio buttonsgender1.addEventListener("click", lo);age2.addEventListener("click", lo);family3.addEventListener("click", lo);income4.addEventListener("click", lo);ethnic5.addEventListener("click", lo);purchase7.addEventListener("click", lo);whyChoose8.addEventListener("click", lo);howOftenUse9.addEventListener("click", lo);wouldYouUse10.addEventListener("click", lo);wouldYouRec10.addEventListener("click", lo);haveYouRec11.addEventListener("click", lo);tables13.addEventListener("click", lo);chairs13.addEventListener("click", lo);fabricCushions13.addEventListener("click", lo);awnings13.addEventListener("click", lo);pergolas13.addEventListener("click", lo);patioUmbrella13.addEventListener("click", lo);outdoorFireplace13.addEventListener("click", lo);firepit13.addEventListener("click", lo);barbecue13.addEventListener("click", lo);outdoorKitchen13.addEventListener("click", lo);fence13.addEventListener("click", lo);railing13.addEventListener("click", lo);planters13.addEventListener("click", lo);fountains13.addEventListener("click", lo);other13.addEventListener("click", lo);wood14.addEventListener("click", lo);plastic14.addEventListener("click", lo);metal14.addEventListener("click", lo);glass14.addEventListener("click", lo);wroughtIron14.addEventListener("click", lo);stainlessSteel14.addEventListener("click", lo);vinylFabric14.addEventListener("click", lo);concrete14.addEventListener("click", lo);brick14.addEventListener("click", lo);compositeMaterial14.addEventListener("click", lo);cobblestone14.addEventListener("click", lo);rattan14.addEventListener("click", lo);notified16.addEventListener("click", lo);contact17.addEventListener("click", lo);// All the input text boxessubmitBtn.onPress = function() { lv.brand6=brand6; lv.product6=product6; lv.dpStore6=dpStore6; lv.address6=address6; lv.city6=city6; lv.yesWho11=yesWho11; lv.name12=name12; lv.company12=company12; lv.title12=title12; lv.street12=street12; lv.city12=city12; lv.state12=state12; lv.zip12=zip12; lv.country12=country12; lv.phone12=phone12; lv.fax12=fax12; lv.email12=email12; lv.fax12=fax12; lv.otherBox13=otherBox13; lv.comments15=comments15; lv.send("form.php", "POST"); _root.gotoAndStop(2);};[/code]My php script:[code]<?$to = "[email protected]";$subject = "Carrand Free Stuff Survey";$gender1 = $_POST['gender1'];$age2 = $_POST['age2'];$family3 = $_POST['family3'];$income4 = $_POST['income4'];$ethnic5 = $_POST['ethnic5'];$brand6 = $_POST['brand6'];$product6 = $_POST['product6'];$dpStore6 = $_POST['dpStore6'];$address6 = $_POST['address6'];$city6 = $_POST['city6'];$purchase7 = $_POST['purchase7'];$whyChoose8 = $_POST['whyChoose8'];$howOftenUse9 = $_POST['howOftenUse9'];$wouldYouUse10 = $_POST['wouldYouUse10'];$wouldYouRec10 = $_POST['wouldYouRec10'];$haveYouRec11 = $_POST['haveYouRec11'];$yesWho11 = $_POST['yesWho11'];$name12 = $_POST['name12'];$company12 = $_POST['company12'];$title12 = $_POST['title12'];$street12 = $_POST['street12'];$city12 = $_POST['city12'];$state12 = $_POST['state12'];$zip12 = $_POST['zip12'];$country12 = $_POST['country12'];$phone12 = $_POST['phone12'];$fax12 = $_POST['fax12'];$email12 = $_POST['email12'];$tables13 = $_POST['tables13'];$chairs13 = $_POST['chairs13'];$fabricCushions13 = $_POST['fabricCushions13'];$awnings13 = $_POST['awnings13'];$pergolas13 = $_POST['pergolas13'];$patioUmbrella13 = $_POST['patioUmbrella13'];$outdoorFireplace13 = $_POST['outdoorFireplace13'];$firepit13 = $_POST['firepit13'];$barbecue13 = $_POST['barbecue13'];$outdoorKitchen13 = $_POST['outdoorKitchen13'];$fence13 = $_POST['fence13'];$railing13 = $_POST['railing13'];$planters13 = $_POST['planters13'];$fountains13 = $_POST['fountains13'];$other13 = $_POST['other13'];$otherBox13 = $_POST['otherBox13'];$wood14 = $_POST['wood14'];$plastic14 = $_POST['plastic14'];$metal14 = $_POST['metal14'];$glass14 = $_POST['glass14'];$wroughtIron14 = $_POST['wroughtIron14'];$stainlessSteel14 = $_POST['stainlessSteel14'];$vinylFabric14 = $_POST['vinylFabric14'];$concrete14 = $_POST['concrete14'];$brick14 = $_POST['brick14'];$compositeMaterial14 = $_POST['compositeMaterial14'];$cobblestone14 = $_POST['cobblestone14'];$rattan14 = $_POST['rattan14'];$comments15 = $_POST['comments15'];$notified16 = $_POST['notified16'];$contact17 = $_POST['contact17'];$survey = "1. Gender: $gender1 2. Age: $age2 3. Family Size: $family3 4. Income: $income4 5. Ethnic: $ethnic5 6. General Purchase Information Brand: $brand6 Product: $product6 Store: $dpStore6 Address: $address6 City: $city6 7. $name12 purchased product at: $purchase7 8. $name12 chose Carrand because of $whyChoose8 9. $name12 uses the products $howOftenUse9 10. $name12 would use again: $wouldYouUse10 $name12 Would recommend: $wouldYouRec10 11. $name12 recommended our products? $haveYouRec11 To: $yesWho11 12. Contact Info: Name: $name12 Company: $company12 Title: $title12 Street: $street12 City: $city12 State: $state12 Zip: $zip12 Country: $country12 Phone: $phone12 Fax: $fax12 Email: $email12 13. $name12 owns these outdoor furnishings. $tables13 $chairs13 $fabricCushions13 $awnings13 $pergolas13 $patioUmbrella13 $outdoorFireplace13 $firepit13 $barbecue13 $outdoorKitchen13 $fence13 $railing13 $planters13 $fountains13 $other13 $otherBox13 14. $name12 has these materials that are used in their outdoor living space. $wood14 $plastic14 $metal14 $glass14 $wroughtIron14 $stainlessSteel14 $vinylFabric14 $concrete14 $brick14 $compositeMaterial14 $cobblestone14 $rattan14 15. $name12 had these Comments: $comments15 16. Should we notify $name12 of new products? $notified16 17. If $name12 wants to be notified, $contact17 is the best way.";mail($to, $subject, $survey, "From: $email12\nReply-To: $email12\n");?>[/code] Link to comment https://forums.phpfreaks.com/topic/27192-getting-data-from-flash-radio-buttons-to-php/ Share on other sites More sharing options...
binx4life Posted November 14, 2006 Author Share Posted November 14, 2006 any ideas? anyone? Link to comment https://forums.phpfreaks.com/topic/27192-getting-data-from-flash-radio-buttons-to-php/#findComment-124620 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.