Stripslashes

From: Date: Sun, 14 Jan 2007 03:26:35 +0000
Subject: Stripslashes
Groups: php.general 
Request: Send a blank email to php-general+get-247056@lists.php.net to get a copy of this message
Hi, Anyone know how I can strip slashes from $_POST variables. I have tried about a hundred different ways of doing this and nothing works. i.e. if(!empty($_POST)){ foreach($_POST as $x => $y){ $_POST[$x] = stripslashes($y); } } This came about after someone tried to enter O'Toole in a form, and it appeared as O\'Toole. Thanks

« previous php.general (#247056) next »