I'm just having a little problem using addslashes/stripslashes here, and I'm
wondering if this actually is the expected behaviour:

I get text from a form post, let's say "This sucks :\".
I do $text = addslashes($_POST["fieldname"]); and stick $text in a DB.

When I pull the text back out, and run stripslashes on the text, the result is:
"This sucks :".. the \ is gone...

Is it supposed to do this? As far as I've seen I need stripslashes on data from
a DB already addslashed... so.. what's going on?

Trond Arve Nordheim
 - "This message has been ROT13-encrypted twice for extra security"

This mail sent through IMP: http://horde.org/imp/

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to