How to escape apostrophe in HTML textbox exactly???
| From: | Scott Fletcher | Date: | Wed, 30 Jun 2004 16:51:35 +0000 |
| Subject: | How to escape apostrophe in HTML textbox exactly??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189311@lists.php.net to get a copy of this message | ||
I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to
HTML textbox. The only trouble I have is to escape the apostrophe character
when it is put into the HTML textbox by PHP (from MySQL).
--snip--
echo "<input type='textbox' value='".$value."'>";
--snip--
I can't use the HTML feature like " or something because the """
would show up in the database... Any suggestion or advice?
Thanks,
Scott F.