Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 exploiting the Monastery: (8)
As of 2014-07-11 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls