Re: stripslashes()
| From: | Leif K-Brooks | Date: | Sun, 09 Mar 2003 07:29:36 +0000 |
| Subject: | Re: stripslashes() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138838@lists.php.net to get a copy of this message | ||
Try this (untestted):
if(get_magic_quotes_gpc()){
foreach($_REQUEST as $vname => $value){
$$vname = stripslashes($vname);} } John Taylor-Johnston wrote:
I need to stripslashes() practically every $value as I pass data from one submit to another. L\'apprentissage d\'une langue ... Instead of doing it to every $value, someone showed me once something I could add something to the beginning of my script. It was some type of code on a post_var that turned off the addslashes on every $value. Anyone have an idea of what I'm talking about?-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.