Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Sunday, May 26, 2013

[PHP] Turn multiple input fields / selections into a single array

While trying to design a form so that it takes multiple inputs from text fields and multiselect selection menus, I was facing problem because even though I could handle a fixed number of fields in my script internally, what for multiple selections in a selection list?? The rescuer [] :)
Yes, just use it after the name of you input field, this way.
<select multiple class="input-medium search-query" id="autolist-filter-select" name="filter_str[]">
<input id="autolist-filter-text1" type="text" name="filter_str[]"/> <input id="autolist-filter-text2" type="text" name="filter_str[]"/>

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...