RE: [PHP-DB] Slashed being added..

2003-01-15 Thread Richard Allinson
stripcslashes (string str)

Ric

-Original Message-
From: Aaron Wolski [mailto:[EMAIL PROTECTED]] 
Sent: 15 January 2003 16:38
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Slashed being added..


Hi All..
 
Quick q here as I cannot remember how to prevent this.
 
Customer is entering their name in a form that get submitted.
 
Their name is: Mike O'Neill
 
But their name is being entered like: Mike O\\\'Neill
 
This is causing his info not to be saved. How do I prevent this?
 
Any thoughts?
 
Thanks!
 
Aaron 
 

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




Re: [PHP-DB] Slashed being added..

2003-01-15 Thread Jason Wong
On Thursday 16 January 2003 01:15, Richard Allinson wrote:
 stripcslashes (string str)

 Ric

 -Original Message-
 From: Aaron Wolski [mailto:[EMAIL PROTECTED]]
 Sent: 15 January 2003 16:38
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Slashed being added..


 Hi All..

 Quick q here as I cannot remember how to prevent this.

 Customer is entering their name in a form that get submitted.

 Their name is: Mike O'Neill

 But their name is being entered like: Mike O\\\'Neill

 This is causing his info not to be saved. How do I prevent this?

 Any thoughts?

Check out the magic_quotes options in php.ini.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
Don't SANFORIZE me!!
*/


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