note 57658 deleted from function.stripslashes by philip

From: Date: Wed, 07 Feb 2007 04:56:08 +0000
Subject: note 57658 deleted from function.stripslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123013@lists.php.net to get a copy of this message
Note Submitter: sam AT emovieposter DOT com ---- If you are simply looking to clear slashes from you POST and GET variables, this seems to work well... <?PHP if(!empty($_POST)){ foreach($_POST as $x => $y){ $_POST[$x] = stripslashes($y); } } ?> it's simple.

« previous php.notes (#123013) next »