dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Radio buttons values to PHP-script

  1. #1
    Senior Member
    Join Date
    May 2001
    Location
    Holland
    Posts
    285
    Hi all,

    I know how to pass variables in a form from input text fields to a PHP-script. But I don't know how to handle radio buttons and dropdown menus in this regard.
    So how do I retrieve the values of those GUI's and send them to a PHP-script?

    Does anyone know a good tute or just the answer?

    Thank you very much!

    Michiel

  2. #2
    Now listen heah! Mac8myPC's Avatar
    Join Date
    Aug 2000
    Location
    Steve Job's Doorstep
    Posts
    695
    any input field in its HTML code has a name.. the same applies to radio buttons and menus. if you have yes and no radio buttons with the same name then whichever is clicked will be passed to the php file - the variable name will be the name of the buttons. the same works for menus.

  3. #3
    Senior Member
    Join Date
    May 2001
    Location
    Holland
    Posts
    285
    Sorry, I forgot to mention that I meant radio buttons in Flash 5. But I decided to use a menu/list box, same problem.

    I was working on the problem with a menu/list box and I couldn't find the variable name that Flash 5 uses in the common library. I found _parent._parent.currentValue and _parent.label as two variables of dynamic text fields.

    However, if I use for instance $_parent.label in my PHP-script, the output in my email is ".label". So the script doesn't recognize the variable of the list box that holds the users choice out of the list.

    So the basic question is: when I use the menu/list box built in Flash 5, what's the name of the variable my PHP-script must receive in order to handle it?

    Your help is highly appreciated, thanx!

    Michiel

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    184
    Any variable that arrives at the PHP script in this form...

    $variable = somevalue;

    ...should work fine. Don't use . or other odd charcters in variable names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center