Serj I wrote:
> --- In [email protected], Dick Russel <[EMAIL PROTECTED]> wrote:
>> If you get extra slashes you have magic quotes enabled
> 
> ... Dick, I did told you I don't use magic quotes They are disabled 
> in my php.ini
> 
> 

Then you should have no reason to run the additional strip slashes. If
you do you will loose the slashes from the string "C:\Windows\system.ini"
Your example turns the string into "C:WindowsSystem.ini which is another
error I see on a lot of computer help websites.

PHP does not add any slashes to your $_POST or $_GET variables, text is
retrieved as is entered. Stripslashes is not required where you are
trying to place it and stripslashes will create incorrect output the way
you use it unless magic quotes are enabled. If you don't believe me, I
can upload the short script to a few servers and you can test it for
yourself.


BTW, getting a saved string from a database works the same way. Unless
additional slashes are added during INSERT, no additional stripslashes
is needed when displaying database data. If you browse your database and
you see escaped data such as \\ or \', then you have redundant data in
your database.

Reply via email to