Re: %27 and ' - urlencode
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: %27 and ' - urlencode

From: Jamie Davison <jamie@dontspam.no>
Date: Fri Sep 09 2005 - 20:04:05 CEST

Not sure if you necessarily want to urlencode/decode here. All you really
need here is . . .

$data = stripslashes($_POST['field']);
echo $data;

On 9/9/05 6:21 AM, in article 432161fd$1@news1.homechoice.co.uk, "elyob"
<newsprofile@gmail.com> wrote:

> Quite a lot of my data has apostrophes in. I'm passing the data using $_POST
> and urlencode. So, for example, Joe's becomes Joe%27s.
>
> On the next page, I urldecode and display the name in the META title. It
> comes out as Joe\'s.
>
> When I pass it once again, it becomes Joe\\\'s.
>
> What am I doing wrong here?
>
> Thanks
>
>
Received on Tue Oct 18 02:21:06 2005