chrisd
Posts: 1
|
| Posted: 03/03/2008, 10:09 AM |
|
Hi trying to get multi select listboxes working.
I can select more than 1 item
But the code
EmpList = Split(CCGetFromPost("mylist", ""),",")
only returns one value, even though I have selected more than 1. It seems to save the first one on the list?
I am using ASP and have used
response.Write "EmpList=" & CCGetFromPost("mylist", "") & "<br>"
to see the output but only 1 item is displayed.
Any ideas please ?
|
 |
 |
wkempees
|
| Posted: 03/03/2008, 2:52 PM |
|
Did you enable MultiSelect on the listbox?
My way of handling (PhP)
$s_list = CCGetParam("a_multilist", "");
if (count($s_list) > 0 AND is_array($s_list)) {
foreach ($s_list as $key => $value) {
....
}
Walter
"chrisd" <chrisd@forum.codecharge> schreef in bericht
news:647cc3ede0dacc@news.codecharge.com...
> Hi trying to get multi select listboxes working.
> I can select more than 1 item
>
> But the code
>
> EmpList = Split(CCGetFromPost("mylist", ""),",")
>
> only returns one value, even though I have selected more than 1. It seems
> to
> save the first one on the list?
>
> I am using ASP and have used
> response.Write "EmpList=" & CCGetFromPost("mylist", "") & "<br>"
>
> to see the output but only 1 item is displayed.
>
> Any ideas please ?
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
|