Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-27-2003, 04:37 PM   #1
Registered User
Join Date: Feb 2003
Posts: 2
Question combo box help, PLEASE!

I AM NOT A SCRIPT PERSON< BUT AM LEARNING MORE EVERYDAY! that said, how do i pass information such as the "data" part of selected label in a combo box to PHP script? example at http://www.nojoescafe.com/joemail2.html

thanks in advance to anyone who can help me..
arcosurf is offline   Reply With Quote
Old 03-01-2003, 07:51 PM   #2
Senior Citizen
jaybee's Avatar
Join Date: Feb 2003
Location: underneath the arches
Posts: 443

you get the value of the combo box with its own inbuilt method getValue, eg temp = myComboBox.getValue(), then you would use LoadVars to send it to a php script, like

ActionScript Code:
myVar = myComboBox.getValue(); myLV = new LoadVars(); myLV.myVar = myVar; myLV.send("myPHP.php");

(you could put this code into a function and make it the onchange handler of the combobox or the onclick handler of a "submit" button) which would be just the same as sending a form to that page and the variable myVar would be available in the php _POST object at the other end:

PHP Code:

echo $_POST["myVar"];

jaybee is offline   Reply With Quote
Old 01-06-2006, 07:20 AM   #3
Registered User
Join Date: Nov 2005
Posts: 18

I tried this code and it yielded "undefinded" as a result.
dniezby is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:27 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.