RE: [PHP] Listbox Data Entry

From: Date: Fri, 02 Feb 2001 17:45:35 +0000
Subject: RE: [PHP] Listbox Data Entry
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37876@lists.php.net to get a copy of this message
You need to be sure that you are defining the select list similar to this: <SELECT NAME="mylist[]" SIZE="3" MULTIPLE> The size field can be whatever you want to show, but you need to use the brackets in the NAME attribute to indicate an array, then treat the data submitted as an array after the form is posted. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 smasiello@chekinc.com -----Original Message----- From: iGuru [mailto:tabarry@email.com] Sent: Wednesday, January 10, 2001 9:56 AM To: php-general@lists.php.net Subject: [PHP] Listbox Data Entry Hello 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 for 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? Thanks in advance, Tahir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#37876) next »