On 6/16/06, Mark Martin <[EMAIL PROTECTED]> wrote:
Hi, does anybody have the correct syntax for using a drop down list. I'm using the object oriented type syntax for CGI. For example my text boxes are printed thus : $cgi = new CGI; print $cgi->input({-type=>"text",-name=>"textbox01",-class=>"textbox"}) drop down list innormal html would be : <select name="selectName" size="1"> <option value="one">First <option value="two">Second <option value="three">Third </select> cant figure out for cgi . . . .?? Cheers, Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
See a small program for dropdown (popup_menu) #!/usr/bin/perl use CGI; $p = new CGI; print $p->header; print $p->start_html(); print $p->popup_menu(-name=>'dropdown',-values=>['one','two','three','four']); print $p->end_html; -- Prabu M A