Re: [PHP] PHP "preg_replace" help

2007-09-17 Thread Arpad Ray
Jim Lucas wrote: Here is a nice little hack that I use. "Little hack" it is, "nice" it isn't. Ideally just turn off magic_quotes_gpc - you can do so in php.ini, or perhaps your web server configuration files (httpd.conf, .htaccess etc.). If you don't have access to any of the above then ins

[PHP] PHP "preg_replace" help

2007-09-17 Thread Chaim Chaikin
Hello, I am a beginner in PHP. I need help with the function preg_replace. I am trying to remove the backslashes ( \ ) from a string that is submitted by the user. It is submitted in a form but it adds \ before the quotation marks ( " ). Will this change if I use the GET method instead of PO

Re: [PHP] PHP "preg_replace" help

2007-09-17 Thread Jim Lucas
Chaim Chaikin wrote: Hello, I am a beginner in PHP. I need help with the function preg_replace. I am trying to remove the backslashes ( \ ) from a string that is submitted by the user. It is submitted in a form but it adds \ before the quotation marks ( " ). Will this change if I use the