Re: Auto-escaping single quotes

From: Date: Wed, 19 Jul 2000 05:35:57 +0000
Subject: Re: Auto-escaping single quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7219@lists.php.net to get a copy of this message
On 19 Jul, James Sanderson wrote: > Is there any way of stopping the automatic escape (\) of a single quote sent > via a field to a PHP script? I'm trying to write an online Italian language > course and it has constant single quotes (') in answers submitted by users. > > I'd be grateful for any advice. > > James > You can use stripslashes to remove them before displaying the text. Alternatively look at the magic_quotes_xxx 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

« previous php.general (#7219) next »