I have the following in my HTML form, among with other inputs, like <input type="test" name="foo"></input> and others.
<select name="tags" multiple="multiple">
<option selected="selected" value="hello">hello</option>
<option selected="selected" value="world">word</option>
</select>
The problem is that when I am using
var_dump($_POST);
the tags returned is a string, and it contains only the last item in the select, like this:
string(5) "world"
Any help?
Your HTML should indicate that it’s submitting an array :
(note the
[])