Re: Post

From: Date: Thu, 20 Jun 2002 16:26:48 +0000
Subject: Re: Post
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103165@lists.php.net to get a copy of this message
On Thursday, June 20, 2002, at 12:19 PM, James Drabb wrote:
I was wondering if there is a setting to make PHP not change the posted data? For example I am posting a first and Last name and if I put in O'Hara for the last name PHP returns O\'Hara. I would prefer getting just O'Hara back and then replacing the ' with '' myself. I need to be able to put the posted data into MySQL and MS SQL. MS SQL doesn't like the O\'Hara format.
Investigate the gpc_magic_quotes setting in the manual. It's set in your php.ini. You can either work around it using stripslashes() on your GET/POST/COOKIE data, or you can change the setting in php.ini or with a function that changes the setting like ini_set(). Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#103165) next »