> 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?

Either turn off magic_quotes_gpc in php.ini or an .htaccess file or do
something like this:

Foreach($_GET as $key => $value)
{ $_GET[$key] = stripslashes($value); }

and the same for $_POST, etc. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to