Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Passing variable to another CGI.pm program

by greengaroo (Hermit)
on Nov 27, 2012 at 15:38 UTC ( #1005876=note: print w/replies, xml ) Need Help??


in reply to Passing variable to another CGI.pm program

It has been a while since I've done that but I think when you put the "multiple" option on a select box, you will receive an array of values on the other side. Try a print Dumper of the CGI params and you should be able to find the selected value(s).

I think you would be able to do this: my @names = $cgi->param('name_of_select_box'); If $cgi is a CGI object. But try the Dumper first to make sure.

Testing never proves the absence of faults, it only shows their presence.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005876]
help
Chatterbox?
[shmem]: Lady_Aleena: perl -MMP3::Tag -MFile::Find -le 'find(sub{if($File ::Find::name=~/\. mp3$/){$sum+=MP3:: Tag->new($_)-> interpolate("\%S ")} }, "Music"); print "total seconds: $sum"'
[Lady_Aleena]: shmem, sorry I was outside for a moment moving my car out of hubby's way.
[Lady_Aleena]: shmem, there is ONE song which throws a wrench in the works for both MP3::Info and MP3::Tag.
[shmem]: Lady_Aleena: fix it, or delete it ;-)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-04-23 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.