Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The shopping cart problem

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
The shopping cart problem:

I am trying to get data from Flash to a php file.

Each item has its own Flash page.

The user selects the number of units of each item and its color.

The user then clicks on the handbag logo to go to a php page where ALL the items to be purchased will be displayed. On the php page, the user will then confirm address details etcetera.

The item number is in a static text box.
The number of units is in an input text box.
The colors are in a combo box.

What I need to know is how to get these three details from the Flash into the php when the user clicks on the handbag logo button.

I shall probably need to use shared objects because hopefully people may need to but more than one item!

Any help will be most appreciated!

Here is the .fla:

 
first off you cant read the contents of a static text box.

for the other 2

handbag.onRelease = function(){
_lv = new LoadVars();
_lv.itemColor = mycombo.getSelectedItem().label;
_lv.quantity = Number(input.text);
_lv.sendAndLoad("myphpfile.php",_lv,"POST");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top