Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : form variables post but not radio button data


BrittDyann
4/2/2004 11:23:21 PM
I have a wroking php form that emails the form data but my data from radio
buttons will not send. It isn't the form, it's a problem with my code becuase
it won't even trace a defined value. I have each set of radio buttons in a
group with a group name of Group 1 or Group2. On an old file in Flash this
process works. Now I am working with MX 2004, has something changed?

function sendResults() {
// Initialize form variables:
formData = new LoadVars();
Q1 = Group1.getValue();
Q2 = Group2.getValue();
trace (Q1);
trace (Q2);
loadVariablesNum ("FORM.php", 0, "POST");

PLease help!

Britt
Laiverd.COM
4/3/2004 1:27:35 AM
Try using the send or senAndload (if you expect a return) method.
Loadvariables will send all variables from the timeline it is put on. You
have now set up the radiobutton vars as property of the Loadvars object. So
either do not use the LoadVars object, or send everything using one of the
above methods.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button