note 14784 added to function.stripslashes.php
| From: | seb at 50_carleton dot com | Date: | Tue, 14 Aug 2001 20:19:36 +0000 |
| Subject: | note 14784 added to function.stripslashes.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16710@lists.php.net to get a copy of this message | ||
I noticed that when submitting a form, PHP will add the slashes to the text fields. Also, if you
have a text field with a value such as: 'this will remain "this will disapear"',
the entire text in double quotes (") will be replaced with a \. So using stripslashes() on
this will remove the entire double-quoted text. So:
echo stripslashes("this will remain \"this will disapear\""); // prints: this
will remain
(remove underscore in email address to email me)
http://www.php.net/manual/en/function.stripslashes.php