Re: UN-Escaping text from a form submit?
| From: | John Vanderbeck | Date: | Thu, 08 Feb 2001 03:57:15 +0000 |
| Subject: | Re: UN-Escaping text from a form submit? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38664@lists.php.net to get a copy of this message | ||
Thanks everyone..Seems it was a very simple thing <blush> I had searched
around on the PHP site, but i'm tired, and I must have missed it. Thanks!
- John Vanderbeck
- Admin, GameDesign
----- Original Message -----
From: "David Robley" <huntsman@hermes.nisu.flinders.edu.au>
To: "John Vanderbeck" <agathorn@cfl.rr.com>; <php-general@lists.php.net>
Sent: Wednesday, February 07, 2001 10:57 PM
Subject: Re: [PHP] UN-Escaping text from a form submit?
> On Thu, 8 Feb 2001 14:17, John Vanderbeck wrote:
> > 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
>
> addslashes and stripslashes are the functions you need.
>
> --
> David Robley | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES |
> http://www.nisu.flinders.edu.au/
> AusEinet |
> http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>