Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Browser-viewable HTML::Template templates

by Anonymous Monk
on Jan 14, 2003 at 23:35 UTC ( [id://227004]=note: print w/replies, xml ) Need Help??


in reply to Browser-viewable HTML::Template templates

You should look at using HTML::FillInForm to fill out your forms. I use it all the time with HTML::Template with great success.

Just do something like this:

my $q = new CGI(); my $template = new HTML::Template( ... ); my $html = $template->output(); my $fif = new HTML::FillInForm; my $output = $fif->fill(scalarref => \$html, fobject => $q);

That will take your raw HTML, and a CGI query object and find any form fields in your HTML and automatically fill them in (including Select boxes, checkboxes and radio buttons).

Now you don't have to worry about using HTML::Template to fill in your values so your HTML becomes very simple, and your designers will have less <TMPL_VAR> tags to contend with.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found