Re: Data Entry From Listbox

From: Date: Sun, 04 Feb 2001 04:06:15 +0000
Subject: Re: Data Entry From Listbox
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38067@lists.php.net to get a copy of this message
> I have a little problem. I have a listbox (multiline combo box) on my web > page. When I sellect multiple items from the list box and submit the form to > enter the values of the listbox items in the database, then only last > selected item of the listbox is entered in the MySQL database. > > Does anyone know what to do? Use NAME=whatever[] in your SELECT tag. Since this is: http://www.php.net/FAQ.php#7.14 I suggest you re-read the FAQ to see if there's some other stuff there you missed. PS Don't feel too bad. I asked the same damn question 6 months after reading the FAQ myself. I hadn't even understood the question, much less the answer, when I first read it :-) Thankfully, Rasmus Lerdorf, the original author of PHP was kind enough to answer my question politely, and, well, that pretty much explains why I'm here right now. :-) NOTE to newbies. Re-reading the FAQ once you think you know what you are doing is a really Good Idea :-) Honest. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38067) next »