Help with multiple select
| From: | rdkurth at starband dot net | Date: | Thu, 08 Aug 2002 19:11:10 +0000 |
| Subject: | Help with multiple select | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111715@lists.php.net to get a copy of this message | ||
I need to get the data from the table and add it to the multiple
select statement below. What I am trying to do is give the user a form
to change his pervious selections. Now doing this if there is only one thing
selected is easy. but I need a way to select multiple fields. The data
in $mins would look like this 8,13,15,20
$row = mysql_fetch_array($result);
$mins=$row["mins"];
<TABLE><tr>
<td valign=top><select name="mins[]" size="12" multiple>
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
<option value="11">11
<td valign=top><select name="mins[]" size="12" multiple>
<option value="12">12
<option value="13">13
<option value="14">14
<option value="15">15
<option value="16">16
<option value="17">17
<option value="18">18
<option value="19">19
<option value="20">20
<option value="21">21
<option value="22">22
<option value="23">23
</tr></table>
--
Best regards,
Richard Kurth mailto:rdkurth@starband.net