Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 avoiding work at the Monastery: (7)
As of 2014-12-19 01:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls