Posted by StevePBurgess on 10/24/61 11:34
Ok. I have checked the magic quotes is on. I have a form on my web
page. The input from this is sent (by POST) to the server. A PHP script
processes it. If there any errors the input is urlencoded and returned
to the webpage with the form in the URL. I am not using add or strip
slashes in my script (except for the testing I did that is explained
below).
If the user inserts slashes or double quotes - when these are returned
to the form they are slashed. If one backslash is inserted, 4
backslashes appear when the form is redisplayed. If I enter a double
quote this is returned as 3 backslashes (the double quote disappears).
If I stripslashes() before returning the input to the form, one
backslash becomes 2 backslashes and a double quote is returned as 1
backslash (but again the double quote disappears).
Any thoughts?
Thanks, in anticipation....
Navigation:
[Reply to this message]
|