I need to take the values passed from checkboxes in a html form and put all the ones checked into a single field. My array doesn't seem to be working.
my $stuff;
foreach $field (param("County")) {
if ($field->checked) $stuff += "|" + $field->value;
}
my $sql = "INSERT into main...
foreach ($title)
{
$_=~s/\&/&/g;
$_=~s/\"/"/g;
$_=~s/\'/'/g;
}
The script replace any " in the title with " but then the script replaces the & with &. Is there a work around?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.