PDA

View Full Version : getting value of radio buttons on ASP page


someoneelse
03-16-2006, 07:37 PM
I hope someone can help me. I've got a flash form that is sending the values to an asp page. I am able to get al lthe variables from my flash form simply by using this code:

username = request("VARusername") where VARusername is the name of the variable on the input box inside flash.

my form has 2 radio buttons, one for male and one for female. I am able trace the value for the radio button in flash by using: trace("radioGroupSex.selection.data= " + radioGroupSex.selection.data)

where radioGroupSex is the groupname for the 2 buttons. I do see the value (either male or female) in the output window inside flash

I am unable to receive the value on my asp page when the flash file is placed online. I am trying to reference it in any way I could think of. None of the following lines work:

sex = request("radioGroupSex.selection.data")
sexa = request("radioGroupSex.selection")
sexb = request("radioGroupSex")
sexc = request("radioGroupSex.data")

I get nothing for all these, except for sexb. It is returning [object Object] as its value. I did not type the brackets, that is exactly what it is outputting to the page.

How can I call the value of the radio boxes on my asp page?

Thanks for your help!
~ Andrea