![]() |
How to GET # symbol in URL?
I'm trying to get a variable from a URL, for example index.php?user=abc#123, but when I try to GET or REQUEST the variable $user from the URL, it just shows up as "abc". Is there anyway to get the entire string?
|
The longshot would be to replace the # with something unique that will actually pass, then reverse it on the other side.
swap # for LOL and send it through as index.php?user=abcLOL123 then replace LOL with # as, I said, longshot. |
Quote:
|
Yes, it will ignore the # as that is used to pass information to the
HTML of the page. |
Quote:
not easier as such but the `normal` way around this is to urlencode()/urldecode() or base64_encode()/base64_decode() the variable |
| All times are GMT +1. The time now is 06:20 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.