Re: PHP 4.0 Bug #5047: FAQ Question 7.9
| From: | Zak Greant | Date: | Thu, 15 Jun 2000 00:05:12 +0000 |
| Subject: | Re: PHP 4.0 Bug #5047: FAQ Question 7.9 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21365@lists.php.net to get a copy of this message | ||
At 11:54 PM 6/14/00 +0000, toss@sea-ware.com wrote:
I can't help with getting the faq updated. However, to get all of the values from a select multiple tag, all you need to do is place a pair of brackets after the value in the name attribute for the select tag. After the form submission, all of the selected values from the select box will be present in an array. i.e. <pre> <form action="<?=$PHP_SELF ?>" method="post"> <select name="multiple_select_box[]" multiple>From: toss@sea-ware.comOperating system: IRIXPHP version: 4.0.0 Release PHP Bug Type: Documentation problemBug description: FAQ Question 7.9 In the FAQ page at your web site, question 7.9 asks "How do I get all the values from a SELECT MULTIPLE HTML tag?" There is no answer to this question...in fact, there is an answer 7.9, but it is for a completely unrelated question (by the way... I need the [missing] answer to question 7.9!)
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
</form>
<? var_dump ($multiple_select_box); ?>
HTH,
Zak Greant
Creative Director
Nucleus Information Service Inc.
"I am rather like a mosquito in a nudist camp: I know what I ought to do, but I don't know where to begin."
- Stephen Bayne