note 57845 added to function.stripslashes
| From: | ndl at webspeed dot dk | Date: | Sun, 16 Oct 2005 17:28:45 +0000 |
| Subject: | note 57845 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97084@lists.php.net to get a copy of this message | ||
The note below still outputted slashes in my script, this one removes it all. It is really just a
repeat of the below note, and is quite simple, but it made it work for me (after a few hours with
unremoveable slashes)
if(!empty($_POST)){
foreach($_POST as $x => $y){
$_POST[$x] = stripslashes($y);
foreach($_POST as $x => $y){
$_POST[$x] = stripslashes($y);
}
}
}
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57845
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57845&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57845&report=yes
Search -- http://master.php.net/manage/user-notes.php