Hi
Can someone help me with the following problem.
Example: A form has a variable called $test. When a user enters:
this is a "test"
for this variable input and then clicks 'Submit' the form posts to a new PHP program, the $test value being:
this is a \"test\"
This is correct as I have magic_quotes_gpc turned on.
However I then have some error checking, and in the case of an error, the program performs a stripslashes() followed by a rawurlencode() on $test. This removes the slashes and allows the string to be passed back to the original program. $test now looks like:
this%20%is%20a%20%22test%22
However what I don't understand is that when I examine $test back in the original program it now shows:
this is a \"test\"
I expected it still to look like:
this%20%is%20a%20%22test%22
so I could simply use rawurldecode() before using it as a value inside the <input>.
Andrew Blee.