Re: Simple question I guess.
| From: | Richard Lynch | Date: | Wed, 24 Jul 2002 01:50:12 +0000 |
| Subject: | Re: Simple question I guess. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109216@lists.php.net to get a copy of this message | ||
>I have a site with all my movies and stuff stored in a database. And I have
>made a admin page where I can add, delete and update records. When I add new
>records, I have made a listbox for the category (ex. action, comedy etc.) so
>I dont have to write it every time I add a new record. But when I push the
>update button and the data thats stored in the database is printed its
>printed just in a textarea. I know its possible to list the data in a
>listbox, but how do I get the right category selected for the movie I
>choose?
You probably need to have some variant of:
<SELECT NAME=category SIZE=5 MULTIPLE>
<OPTION>action</OPTION>
<OPTION>comedy</OPTION>
<OPTION>etc</OPTION>
</SELECT>
instead of whatever you have now.
--
Like Music? http://l-i-e.com/artists.htm