bladx has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use HTML::Template; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; print $cgi->header; my $template = new HTML::Template(filename => "1.tmpl", die_on_bad_par +ams => 0); $template->param( BOX => $cgi->popup_menu(-name=>'color', -values=>['red','green','blue','chartreuse'] +), BOX2 => $cgi->textfield('name'), ); print $template->output();
<html> <title>test</title> <body> <form> <table border=1 > <tr> <td> Color1: <TMPL_VAR NAME="BOX"> <br></td> <td> What is your name?: <TMPL_VAR NAME="BOX2"> <br> </td> <td> <input type=submit> </td> </table> </form> </body> </html>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML::Template Form Usage
by rob_au (Abbot) on Jan 03, 2002 at 04:39 UTC | |
(jeffa) Re: HTML::Template Form Usage
by jeffa (Bishop) on Jan 03, 2002 at 06:08 UTC | |
Re: HTML::Template Form Usage
by jarich (Curate) on Jan 03, 2002 at 09:44 UTC | |
by rob_au (Abbot) on Jan 03, 2002 at 09:55 UTC |