Re: The Troubles with User Input
| From: | David Robley | Date: | Fri, 07 Jul 2000 06:14:41 +0000 |
| Subject: | Re: The Troubles with User Input | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5323@lists.php.net to get a copy of this message | ||
On 7 Jul, Mike Gifford wrote:
> Hello,
>
> Is there an easy way to stop special characters (like ' ) from messing
> up how they are displayed by PHP. Whenever someone enters in a ' in the
> script it comes back with lots of slashes before it.
>
> This message:
> http://www.openconcept.on.ca/cards/receive.php3?viewcard=276
>
> Was sent with the following request:
> This is a test ' This is a test
>
> But I got this instead:
> This is a test \\ This is a test
>
> The entire script can be found here:
> http://www.openconcept.on.ca/guide-cards.phtml
>
> Thanks.
>
> Mike
addslashes() and stripslashes() can be used interactively, and also see
the magic_quotes settings in your ini file.
Cheers
--
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