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
[EMAIL PROTECTED]
-----Original Message-----
From: iGuru [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 9:56 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]