- or download this
$_value =~ s/>/>/g;
$_value =~ s/</</g;
- or download this
$_value =~ s/’/’/g; # typed from keyboard
$_value =~ s/%92/’/g; # uri encoding
$_value =~ s/’/’/g; # should never work
- or download this
our %_form; our $_value;
our $_query = CGI->new();
...
# convert nasty and/or special chars to html codes
$_form{$_} = $_value;
}
- or download this
foreach (@_field_names) {
$_value = $_query->param($_);
...
$_form{$_} = $_value;
}