Re: multiple select problem

From: Date: Thu, 02 Jan 2003 03:16:23 +0000
Subject: Re: multiple select problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129911@lists.php.net to get a copy of this message
Hi, Thursday, January 2, 2003, 12:39:46 PM, you wrote: EK> i am now facing a problem in multiple select. EK> This is my example code in html. EK> <select name="destList" MULTIPLE size="6"> EK> <option value=4>123</option> EK> <option value=5>234</option> EK> <option value=6>345</option> EK> </select> EK> i select all the value and pass to php...it should be a array. EK> but when i display the destList value, it just show the "6" the last EK> value... EK> where goes wrong? EK> Elaine Kwek You need to call your select name as name="destlist[]" Then php will know to expect an array list -- regards, Tom

« previous php.general (#129911) next »