in reply to Forms Textfields

If you're using CGI.pm, it has a function called escapeHTML. Here's an example:
use strict; use CGI; my $q = new CGI; my $content = qq(People "Have" many "problems"); print $q->header; print $q->escapeHTML($content);
produces:
People "Have" many "problems"

Replies are listed 'Best First'.
Re: Re: Forms Textfields
by Anonymous Monk on Oct 09, 2002 at 20:27 UTC
    $sth = $dbh->prepare("$ins") or die $dbh->errstr; $sth->execute(map(scalar escapeHTML(param($_)), qw(cat itemid des lon +gdes size o1n o1o o2n o2o o3n o3o c1n c1v c2n c2v c3n c3v)),$price,$s +mall,$large) or die $dbh->errstr;
    Works great, im problay going to make my own sub that will do this.