Philip Olson wrote:

I usually stripslashes() when I read the info from the database (MySQL).
 Because the information was inserted after adding slashes, or the
system has magic_quotes_gpc set to ON.


To add further comment.  If you're required to run stripslashes() on
data coming out of your database then you did something wrong.  Your
code would have essentially looked like the following before insertion:

Wow, here where just my mistake :p I have magic_quotes_gpc at ON and I
do not use addslashes. I use a custom .htaccess file to ensure
magic_quotes_gpc are ON ...

But in a class used to create the forms, there is a striplashes(), so
the extrange I've seen. Removed stripslashes from the function, solved
the problem.

Just have to work to see how manage the form when data comes from a
previos post (Which have slashes) or comes from DB (Which have NOT).

Thanks to all to help me to clarify this point.
Jordi.

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



Reply via email to