RE: [PHP] plus sign has changed to space after POST
| From: | John W. Holmes | Date: | Wed, 20 Nov 2002 04:18:18 +0000 |
| Subject: | RE: [PHP] plus sign has changed to space after POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125189@lists.php.net to get a copy of this message | ||
Show your code. If I pass a + sign in a form, it comes out as a plus
sign in my data... I don't see your problem unless I do something like
this:
$data = "abc+def$ghi";
echo "<a href='link.php?data=$data'>Click Here</a>";
Which is solved by using urlencode() before you place it in the link.
---John Holmes...
> -----Original Message-----
> From: bhkwan@ThoughtWorks.com [mailto:bhkwan@ThoughtWorks.com]
> Sent: Tuesday, November 19, 2002 10:53 PM
> To: holmes072000@charter.net
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] plus sign has changed to space after POST
>
> This is the problem that I describe earlier in the thread. I can't
save
> %24 in the database but "$".
>
> ie
> a user send a string "abc+def$ghi", I need to get the exact string
back
> but not "abc+def%24ghi".
>
> so is this a bug in PHP??
>
>
>
>
>
>
>
> "John W. Holmes" <holmes072000@charter.net>
> 11/19/2002 04:46 PM
> Please respond to holmes072000
>
> To: <bhkwan@ThoughtWorks.com>
> cc: <php-general@lists.php.net>
> Subject: RE: [PHP] plus sign has changed to space after
> POST
>
>
> > might be my php code has problem the following code fragment will
keep
> "+"
> > to "+" but "$" to "%24"
>
> That's what urlencode() is supposed to do.
>
> ---John Holmes...
>