Form text with reserved chars

From: Date: Fri, 01 Nov 2002 07:37:50 +0000
Subject: Form text with reserved chars
Groups: php.windows 
Request: Send a blank email to php-windows+get-16647@lists.php.net to get a copy of this message
Hi NG. I'm having trouble with form textareas containing " ' ". Every time I submit a form holding this char php will insert "\" infront of it. I'm well aware of the reason for this but I'd like to know just how to get rid of the "\". I've tried using ereg_replace("'","´",$text) but the "\" is inserted the very second submit is invoked. How do I get rid of the "\" or "\'" when I want to show the text the form field was holding? Also, I'd like to know if there is a smart way of replacing "spaces" and "new line" in the text with the html code for this. Aka to make the view exactly as it was typed in the field. If anyone can help me with this it would be very much apreciated. Regards ~ Aidal

« previous php.windows (#16647) next »