Re: problem with <select multiple
| From: | Zak Greant | Date: | Fri, 22 Sep 2000 00:07:32 +0000 |
| Subject: | Re: problem with <select multiple | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-1341@lists.php.net to get a copy of this message | ||
At 07:50 PM 9/21/00 -0400, Scott Corneil wrote:
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>Hi Scott, This is the PHP Quality Assurance team list - we don't generally discuss support issues on it. A better place to submit your messages to would be the general php list (php-general-subscribe@lists.php.net to subscribe) However, since you are here, the least I could do is point you to the right place in the manual :) Read http://www.php.net/manual/language.variables.variable.php, it should help a lot. - Zak<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.