Help for this page

Select Code to Download


  1. or download this
    my $foo = $dbh->selectrow_array("SELECT cola FROM table WHERE id=$q->p
    +aram('id')");
    ## This does not work.
    ## I could do something similar to this to solve the problem.
    my $cgi_vars{id} = $q->param('id');
    my $foo = $dbh->selectrow_array("SELECT cola FROM tablet WHERE id=$cgi
    +_vars{id}");
    
  2. or download this
    foreach (keys %cgi_vars) { $q->param($_ => $cgi_vars{$_}); }
    
  3. or download this
    $template->param(
        templatefoo => $q->param( 'foo' ),
        templatebar => $q->param( 'bar' )
    );