help with <select multiple
| From: | Scott Corneil | Date: | Thu, 21 Sep 2000 23:53:47 +0000 |
| Subject: | help with <select multiple | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3047@lists.php.net to get a copy of this message | ||
hi, if anyone could help, that'd be great.
i have a database, with a table having a primary key of type int.
selecting all the indexes, i then want to create a series of select multiple
lists.
using (in a loop for each index)
echo "<select name=\"attribute$row[0][]\" multiple>";
and then a sub loop where all the option elements are fields from a
different table
yields on my web page
<select name="attribute1[]" multiple>
<option value ...</option>
</select>
...
<select name="attribute10[]" multiple>
<option value= ...</option>
</select>
my problem is accessing the fields upon form submission.
i once again have a loop for each index.
how do I access these?
$attribute$row[0][0] doesn't get the job done.
if anyone has suggestions, or maybe a better way to do it, I would really
appreciate it.
thanks.