Fields in HTML Form
Please support our Perl advertiser: Programming Forums
![]() |
I am doing a perl project for school in which I am using CGI.pm. I am a complete perl novice.
With the following:
My question is what is the syntax to add a hidden form field?
---
I have a second question as well. I would like to create a form field that is a drop down menu.
I have an array of possible values for the dropdown,
Is it
With the following:
use CGI;
$query = new CGI;
print $query->startform({-action => "foo.cgi", -method => "post"});
print $query->p($query->textfield({-name => "bar"}));
print $query->submit({-name => "action", -value => "submit"});
print $query->endform();My question is what is the syntax to add a hidden form field?
---
I have a second question as well. I would like to create a form field that is a drop down menu.
print $query->popup_menu({-name => "foo", -values => ["bar", "baz", "bat"]});I have an array of possible values for the dropdown,
@values. However, doing -values => $values doesn't seem to work, so how exactly can I do it?
Is it @values or am I just completely way off base? Gah!
Dani the Computer Science Gal
Well I just answered my hidden filed question ...
http://search.cpan.org/dist/CGI.pm/C...A_HIDDEN_FIELD
http://search.cpan.org/dist/CGI.pm/C...A_HIDDEN_FIELD
Dani the Computer Science Gal
![]() |
Similar Threads
Other Threads in the Perl Forum
- [urgent] HTML form => XML file (JSP)
- HTML Form post to PHP? (PHP)
- Getting a value into HTML form. (Perl)
- HTML Form not working with IE when lots of select/option boxes included. (HTML and CSS)
- HTML Form not working with IE when lots of select/option boxes included. (Web Browsers)
- changing the color of a HTML form selection (HTML and CSS)
Other Threads in the Perl Forum
- Previous Thread: Trouble Expanding a bus in PERL
- Next Thread: I get the error no file or directory when i try to run a perl script
•
•
•
•
Views: 3965 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode