Claudia Smith wrote:
> I am passing a string value via a url to be used for printing on a
> page and for sending info via email.
>
> I first encode the string before passing it.
This is correct, but you should be using urlencode() instead of
rawurlencode(). To be frank, I don't know what the difference is,
exactly (never used the raw ones), but I think urlencode() is more
appropriate here.
> I have to tried to decode the string before printing it -- but the \
> still prints.
You don't need to decode. This is done automatically. The "problem" is
that the so called "magic quotes" are active. These do an addslashes()
on all GET, POST... data. You can undo this with stripslashes().
regards
Wagner
--
"I haven't committed a crime. What I did was fail to comply with the
law."
David Dinkins, New York City Mayor
--
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]