Re: Char Problem

From: Date: Sat, 07 Apr 2001 19:57:57 +0000
Subject: Re: Char Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47583@lists.php.net to get a copy of this message
At 20:45 7/4/2001 +0200, you wrote:
Hello... I have a problem with some special chars.... I created some kind of editor for text files.... but chars like " get a \ in front everytime you send it.... here is my code: <form action="self.html" enctype="text/plain"> <textarea name="text" cols="80" rows="15" wrap=off> <?=$text?> </textarea><br> <INPUT TYPE="submit" VALUE="Send"> </form> If you just enter " and click send you see what my problem is.... does someone have a idea how to fix this??? Thanks!
try stripslashes()... like this....<textarea ...><?=stripslashes($text)?></textarea>

« previous php.general (#47583) next »