Stripslashes
| From: | Gary | Date: | Wed, 17 Nov 2010 03:10:27 +0000 |
| Subject: | Stripslashes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-309531@lists.php.net to get a copy of this message | ||
I was doing a test of stripslashes on a $_POST, when I recieved the email,
all of the slashes were still in the data posted.
I used :
$fname = stripslashes($_POST['fname']);
I input G\\a//r\y\\, and was expecting, according to the manuel G\a//r*y\,
but got the original spelling.
I added:
echo stripslashes($fname); and did get the expected result on the page, but
not in the email from the $_POST.
I also tried
$fname = (stripslashes($_POST['fname']));
But got the same result.
Can anyone tell me what I am not understaning?
Thank you
Gary
__________ Information from ESET Smart Security, version of virus signature database 5625 (20101116)
__________
The message was checked by ESET Smart Security.
http://www.eset.com