Re: UN-Escaping text from a form submit?

From: Date: Fri, 09 Feb 2001 19:28:09 +0000
Subject: Re: UN-Escaping text from a form submit?
Groups: php.general 
Request: Send a blank email to php-general+get-38900@lists.php.net to get a copy of this message
there are two ways of achieving thi - stripslashes($data) or if you want this to be global, then set magic_quotes_gpc = Off in php.ini file hope that helps regards Ankur Verma > ----- Original Message ----- > From: "John Vanderbeck" <agathorn@cfl.rr.com> > To: <php-general@lists.php.net> > Sent: Thursday, February 08, 2001 9:17 AM > Subject: [PHP] UN-Escaping text from a form submit? > > > > 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: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#38900) next »