in reply to Quotes In CGI
Ponder the difference between
andmy $name = $cgi->param('name'); my $query = "INSERT ... VALUES($name)";
and note that quote() gets invoked automagically when you execute() a query and provide values for placeholders in the query.my $name = $cgi->param('name'); my $query = "INSERT ... VALUES(" . dbi->quote($name) . ")";
|
|---|