More Questions Than Answers

Dan Atrill's blog site

php form handling multiple select entries

The problem: You need to use the result of a multiple select form element in your php script. Handling a $_POST request gives only one entry from the form element, not all those selected. The solution: Use array name in form element name ie multiselect becomes multiselect[] or <select name=”multipleselect[]“> <option value=”0″>0</option> <option value=”1″>1</option> <option [...]

more... »

Thu, August 14 2008 » PHP, Web developing » No Comments