PDA

View Full Version : combobox flash -> php


sted
06-08-2005, 11:47 AM
Hello,

I've got several checkbox with the same groupname, and i want to retrieve the choices in a php file that i call with sendAndLoad, but how can i do for the LoadVars get severals values for one name ? ie: t=1&t=3 per example ? i ve tried with an array but it s like t=1,3, not good so. please help.

thanx

Billystyx
06-09-2005, 11:29 AM
with the array, when you bring into flash you can then use
yourArr.split(",");

to turn it into a proper array.

Does this help?

sted
06-09-2005, 12:06 PM
well it s flash -> php i want. but i think that i m going to do this in php 'cause i don't known any other solutions.. thanx you!

Billystyx
06-09-2005, 12:42 PM
myCombo.addItem({label:t[0],data:u[0]});

assuming you are bringing from php an array called 'u' as well with the values for each combobox item.
So, once you have brought it across, you split out each array into a flash array with t.split(",");
u.split(",");

and then you add your items to your combox box with the above code.

billystyx