Re: [PHP] Issues with backslashes and GET data

2005-10-12 Thread Chris Shiflett
Martin Selway wrote: A servername may contain a backslash e.g. Server1\SQL1. When this data is returned from the URL e.g. $server = $_GET['server']; The name is returned as Server1\\SQL1, so the search fails. Sounds like magic_quotes_gpc is enabled. Disable it. I've tried using a regular expr

Re: [PHP] Issues with backslashes and GET data

2005-10-12 Thread Brent Baisley
Have you tried the stripslashes() function? That will "unescape" characters that have been escaped. On Oct 12, 2005, at 8:03 AM, Martin Selway wrote: I use a php page which is supposed to return records from a database table limited to the servername specicified in a drop down menu. A ser

[PHP] Issues with backslashes and GET data

2005-10-12 Thread Martin Selway
I use a php page which is supposed to return records from a database table limited to the servername specicified in a drop down menu. A servername may contain a backslash e.g. Server1\SQL1. When this data is returned from the URL e.g. $server = $_GET['server']; The name is returned as Server1\\SQ