Passing Multiple Values With Hidden Input Fields
With a select tag, it is possible to post multiple values using only HTML by selecting more than one option? For example:
Solution 1:
Use [ ] in the field name to send multiple values:
<input type="hidden" name="your_field_name[]" value="1" />
<input type="hidden" name="your_field_name[]" value="2" />
<input type="hidden" name="your_field_name[]" value="3" />
You will get an array of values in the your_field_name field.
Post a Comment for "Passing Multiple Values With Hidden Input Fields"