On form submit, the value from the select element not getting submitted.
html:select element is surrounded by a div tag. If there is a single div tag, it works fine. But two div tags with the same html:select property name does not work.
Please note that on form submit only one div tag with style as inline and the other div style is none.
1 Replies - 853 Views - Last Post: 14 September 2012 - 11:44 AM
Replies To: <html:select> value not submitted for the second div style as
Re: <html:select> value not submitted for the second div style as
Posted 14 September 2012 - 11:44 AM
that’s because the latter <select> overwrites the former. you need to append  to the name to make PHP read them as an array.
<select name="test"> … </select> <select name="test"> … </select>
// or $_GET, if you use that var_dump($_POST["test"]);
Page 1 of 1