my $test = $cgi->param('test'); @bind_values = ($test, $id); $dbh->do($sth, undef, @bind_values) or die DBI::errstr;