Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: label usage

by bm (Hermit)
on Aug 18, 2003 at 16:33 UTC ( #284631=note: print w/ replies, xml ) Need Help??


in reply to label usage

Try changing

%labels=('1=>a', '2=>b', '3=>c');
to
%labels =( 1=>'a', 2=>'b', 3=>'c');
Also, I recommend turning on warnings and strict.
--
bm


Comment on Re: label usage
Select or Download Code
Replies are listed 'Best First'.
Re: Re: label usage
by Anonymous Monk on Aug 18, 2003 at 17:23 UTC
    thanks .. it works ... but from within my script, how can I determine which selections were made by the user?
      use CGI; my $cgi = new CGI; my @letters = $cgi->param('avletters'); print "The user selected: "; print "$_\n" foreach(@letters);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://284631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-07-28 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls