Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: HTML::FillInForm

by bradcathey (Prior)
on May 18, 2005 at 13:19 UTC ( #458191=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    PERL:
    
    ...
       </select><br />
       <input type="submit">
    </form>
    
  2. or download this
    my $fvalues = $q -> Vars;
    my $name = "Mr.". $q->param('name');  #alter one of them
    ...
    my $template = HTML::Template->new( filename => "../form.tmpl");
    $template->param( name = $name );
    my $html = $template->output;
    
  3. or download this
    my $fvalues = { address => '123 Main Street', choice => '2' };
    #BTW, if the form tag is select with multiple attribute, use a referen
    +ce to an array of the values:
    ...
    my $template = HTML::Template->new( filename => "../form.tmpl");
    $template->param( name = $name );
    my $html = $template->output;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-08-01 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls