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
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to