MrCBofBCinTX
Technical User
I'm trying to preload xhtml inputs with values from database that include double and single quotes (as inch and foot)
I have tried using
doesn't work, tried some other substitutions, but they all fail to do anything.
above works fine.
But I keep getting double quotes in xhtml, which screws up value that I want correctly preloaded in update form.
Code:
while ($tbl = $sth->fetchrow_arrayref)
{
$tbl10 = "<option value=\"@$tbl\">@$tbl</option>";
if ($tbl10 =~ m/($vendor_name)/) {
$tbl10 =~ s/<option value/<option selected="selected" value/;
}
$tbl10 =~ s/&/&/g;
print "$tbl10";
}
I have tried using
Code:
$tbl10 =~ s/"/"/g;
Code:
$tbl10 =~ s/&/&/g;
But I keep getting double quotes in xhtml, which screws up value that I want correctly preloaded in update form.