tags:

views:

40

answers:

1

How can I pass all the values from one dropdown list to one PHP array?

Let's say that I have one dropdownlist name="country" and id="countries"
Options:
val="Japan" Japan
val="USA" USA
val="UK" UK

How can I parse the values to one PHP array?

The content is generated dynamically from another dropdownlist by chained method.

Cheers!

+1  A: 

I would recommend serializing all the values using JSON and decoding the JSON on the server.

SimpleCoder