CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [2huskys] Cant get my checkboxes to display all the users selected ones: Edit Log



Zhris
Enthusiast

Dec 11, 2010, 11:34 AM


Views: 1976
Re: [2huskys] Cant get my checkboxes to display all the users selected ones

Hi,

You are reading an array of values, in scalar context. By doing this with the param method, only the first value is assigned. Try the following instead:


Code
@prefrence = param('prefrence');


These lines might help you when displaying the array:


Code
print "@prefrence"; 
print "$_<br />" foreach (sort {$a cmp $b} @prefrence);


Chris


(This post was edited by Zhris on Dec 11, 2010, 11:35 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Dec 11, 2010, 11:34 AM
Post edited by Zhris (Enthusiast) on Dec 11, 2010, 11:35 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives