Re: Slash problem

From: Date: Thu, 20 Dec 2001 00:18:51 +0000
Subject: Re: Slash problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78273@lists.php.net to get a copy of this message
Hi set this in your php.ini file: magic_quotes_gpc = Off You'll have to use addslashes before you can store these variables with an ' in a database after turning it off. Tom At 10:39 AM 20/12/01, Evansville Scene wrote:
I'm fairly new @ PHP, so forgive me if the answer is trivial ... In many cases, if I take in data from a form and the user uses an apostrophe, the data that is sent to me has a slash in it. For example: Jones\' Auto Repair Is there an easy fix? I'm not sure why this is occurring ... It\'s been quite a pain :) Adam


« previous php.general (#78273) next »