I have a form with a checkbox. The value of the check box is something like "
Blah Blah " Blah " Blah"
(It';s got the htmlentity for the " in the middle of it twice)
Somehow when the form gets submitted, the " becomes a "
I've tried this with both firefox and IE and have the same problem. I'm using PHP5.
in /etc/php.ini I have:
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
I thought this would mean I shouldn't have any weirdness with quotes.
With the "e turned into a ", this of course choaks MySQL when I try to put the value into the database. I can't turn it into a " because that will mess up the checkbox html. I can't use htmlentities on $_REQUEST b/c there are other elements which might contain < or > that I don't want converted.
What can I do to make sure the "e; doesn't get turned into a " when I submit the form.