开发者

JQuery dropdown list values to php array?

开发者 https://www.devze.com 2023-01-16 06:20 出处:网络
How can I pass all the values fro开发者_JS百科m one dropdown list to one PHP array? Let\'s say that I have one dropdownlist name=\"country\" and id=\"countries\"

How can I pass all the values fro开发者_JS百科m 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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消