RE: [PHP] Text boxes posted to MySQL record that contain quotes
| From: | electroteque | Date: | Wed, 09 Jul 2003 21:34:28 +0000 |
| Subject: | RE: [PHP] Text boxes posted to MySQL record that contain quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154636@lists.php.net to get a copy of this message | ||
lol why didnt i think of this , i have done this before for hidden form
fields when creating a preview page :\ , i guess i have to reconvert if it
reposts so it doesnt screw up the sql
-----Original Message-----
From: John W. Holmes [mailto:holmes072000@charter.net]
Sent: Wednesday, July 09, 2003 8:49 PM
To: Vernon
Cc: php-general@lists.php.net
Subject: Re: [PHP] Text boxes posted to MySQL record that contain quotes
Vernon wrote:
> I know that using stripslashes will remove \ using php but I'm having
> trouble with posting quotation marks in a text record field. Anyone know
how
> I can get them to post to the database? It's basically like an email and
I'd
> like anything written to be able to post.
Use htmlentities() to convert quotes to HTML entities.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php