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;