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 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.