Re: Listbox Data Entery

From: Date: Fri, 02 Feb 2001 17:48:05 +0000
Subject: Re: Listbox Data Entery
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6328@lists.php.net to get a copy of this message
In article <95erfd$neg$1@toye.p.sourceforge.net>, tabarry@email.com ("iGuru") wrote: > 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. Instead of name="var_name", you want name="var_name[]". The square brackets define the variable as an array instead of a string. -- CC

« previous php.db (#6328) next »