[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cgiapp] CGI.pm help
- Subject: [cgiapp] CGI.pm help
- Date: Sat, 20 Jan 2007 11:42:21 -0800
- From: Kevin Mullin <suppressed>
Is this the right mailing list to ask
these kinds of questions?
I'm having problems with the popup_menu
CGP.pm method. I have it working with code that looks like this:
print $CGI->popup_menu(-name=>'menu_name',
-values=>('eenie'=>'one',
'meenie'=>'two',
'minie'=>'three'));
wher CGI is the CGI.pm object created
before with $CGI = new CGI;
The above works just fine. Then,
I tried to create a hash with the values I'm giving to popup_menu (which
the books says I can do) with this code:
%menu_values = ('eenie'=>'one',
'meenie'=>'two',
'minie'=>'three');
print $CGI->popup_menu(-name=>'menu_name',
-values=>%menu_values);
But when this is run from my web browser,
I see the code it generates is:
<select name="menu_name"
three="meenie" two>
<option value="eenie">eenie</option>
</select>
Which, of course, doesn't work. What
am I doing wrong?
Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
suppressed
| ![]() |
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.