CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 CCGetFromPost - only posting 1st value

Print topic Send  topic

Author Message
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 ?
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.