Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: HTML::FillInForm

by bradcathey (Prior)
on May 18, 2005 at 13:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found