I have to pass the URL using a GET address. To give an example I've tried:
http://www.example.com/area/#http://www.example.com/area2/ I have also tried to replace the next slash with the other characters but it does not seem to work. How do you get the URL in GET?
As I understand, you should use.
The function lets you create a string that can be used as a link.
You should use it like this:
$ link = 'goto .php? Link = 'url_encode ($ _ post [' TARGET_SITE ']); And when you were going to redirect to a user defined site (such as), you can decode the given parameter like this:
$ Decoded_link = url_decode ($ _GET ['click']); // It is now safe to use the given URL (for example, I can redirect there) header ('location:'. $ Decoded_link); Hope it helps.
No comments:
Post a Comment