简体   繁体   中英

JQuery dropdown list values to php array?

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!

我建议使用JSON序列化所有值并在服务器上解码JSON。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM