[PHP] multiple select problem
I had code working that was passing multiple select values to another screen from a form... In the URL on the next page I see a bunch of characters, so it doesn't work... %5C%22year_model_id%5B%5D%5C%22=60776 Anyone know what this is and how to fix it??? It was working fine for months and just stopped working one day. Much appreciated... thanks, -tom FORM SELECT NAME=\year_model_id[]\ SIZE=30 MULTIPLE EOL ? while(list($year_model_id, $year, $make, $model) = mysql_fetch_row($result)) { code here } print /SELECT; submit button... /FORM
[PHP] multiple select problem
i am now facing a problem in multiple select. This is my example code in html. select name=destList MULTIPLE size=6 option value=4123/option option value=5234/option option value=6345/option /select i select all the value and pass to php...it should be a array. but when i display the destList value, it just show the 6 the last value... where goes wrong? Elaine Kwek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multiple select problem
What about if you use this instead: select name=destList[] MULTIPLE size=6 HTH, Jason k Larson Elaine Kwek wrote: i am now facing a problem in multiple select. This is my example code in html. select name=destList MULTIPLE size=6 option value=4123/option option value=5234/option option value=6345/option /select i select all the value and pass to php...it should be a array. but when i display the destList value, it just show the 6 the last value... where goes wrong? Elaine Kwek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multiple select problem
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=4123/option EK option value=5234/option EK option value=6345/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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php