note 64292 deleted from function.addslashes by bjori

From: Date: Tue, 11 Apr 2006 20:38:49 +0000
Subject: note 64292 deleted from function.addslashes by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107803@lists.php.net to get a copy of this message
Note Submitter: shopping at businessrealmz dot com Reason: in docs ---- if you want to stop worrying about addslashes add this at the very top of your file or on your config file if(get_magic_quotes_gpc($str)==0){ foreach($_POST as $key => $value){ if(is_array($value)){ foreach($_POST[$key] as $k => $val){ $_POST[$key][$k] = addslashes($val); }//end foreach }//end if..is_array else $_POST[$key] = addslashes($value); }//end foreach }//end if..get_magic gpc

« previous php.notes (#107803) next »