[thelist] FW: Really annoying PHP escape problem
Rob Smith
rob.smith at THERMON.com
Thu Apr 8 12:52:53 CDT 2004
I thought about this more why I'm getting three \'s
Firstly the code is sent to a page via post with urlencode(). The first ' is
now \'. When the code is spit back out to the screen to preview both
characters are getting escaped:
\\ \' hense \\\'
this is odd.
Rob
-----Original Message-----
From: Rob Smith
Sent: Thursday, April 08, 2004 12:46 PM
To: Thelist (E-mail)
Subject: Really annoying PHP escape problem
Hi list
When I encode an ' through a querystring it gets encoded via:
%5C%27 \'
When it get's display through: echo $_GET["variable"], the screen will show:
\\\'
All I want is the simple ' to show up. How do you escape the three \\\'s
here?
Rob Smith
More information about the thelist
mailing list