run $blah = stripslashes($blah);
PHP automatically does the equivalent of addslashes() to all form submits.
^^@rk
John Vanderbeck wrote:
>
> Hello again,
>
> I have a form that is used to submit data to my script. If the user enters
> something like:
>
> The title of this book doesn't really matter to "me"!
>
> When I get that back, and read it from the file, it always ends up like:
>
> The title of this book doesn\'t really matter to \"me\"!
>
> Note the addition of the escape sequences. How can I stop this? Is there
> some function in PHP? Or am I goign to have to write a character routine to
> strip out escape sequences? <shudder>
>
> - John Vanderbeck
> - Admin, GameDesign
>
> --
> 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]
--
<< If I was a signature file, where would I be?? >>
--
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]