before doing anything else with it.
This will prevent from anything removing the " \ ' etc because they will all
automagically be escaped with that command.
When you pull the data back out use:


-----Original Message-----
From: Torkil Johnsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:34 AM
Subject: [PHP] Problem with backslashes disappearing


I have a simple form taking in some user text input and storing it in a
mysql database. My problem is that PHP strips off any backslashes in the
text. I realize that backspace is used as an escape character in PHP, but
sometimes i DO want it in there!!

Is there a way to do this so that I can store them? For example replacing
the backslash with some code? Like "&" can replace "&"?


- Torkil

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to