RE: [PHP] Slash problem
| From: | Martin Towell | Date: | Wed, 19 Dec 2001 22:43:28 +0000 |
| Subject: | RE: [PHP] Slash problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78261@lists.php.net to get a copy of this message | ||
either set "magic_quotes_gpc" to "off" in you .ini file - or use
stripslashes() on the variable
-----Original Message-----
From: Evansville Scene [mailto:webmaster@evansvillescene.com]
Sent: Thursday, December 20, 2001 11:40 AM
To: php-general@lists.php.net
Subject: [PHP] Slash problem
I'm fairly new @ PHP, so forgive me if the answer is trivial ...
In many cases, if I take in data from a form and the user uses an
apostrophe, the data that is sent to me has a slash in it. For example:
Jones\' Auto Repair
Is there an easy fix? I'm not sure why this is occurring ...
It\'s been quite a pain :)
Adam