If I submit a string to a script via GET which contains quotes, how should
they appear in my script?

Eg:
    --- test.php ---
    echo $HTTP_GET_VARS['test'];

Go to:
    test.php?test=this+doesn%27t+work

.. and you get:
    this doesn\'t work

(Char 27 is a single quote. Echoing $test gives the same result.)

I can use stripslashes lose the escape char, but should this be necessary?
I'm using v4.0.4pl1

--
Mark Rogers
Lose the -news in the email address if replying direct



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to