Home › Forums › Back End › what’s the difference between those links › Re: what’s the difference between those links
May 30, 2011 at 12:39 pm
#74951
Member
http://mydomain/index.php?img=http://mydomain/images/1.png
it’s no difference with
mydomain/index.php?id=1
they are all key-value pairs, you can retrieve the first one with $_GET or $_REQUEST on server side; you can retrieve the second one with $_GET or $_REQUEST on server side.
For the last one:
http://mydomain/?7
It’s useful for a user friendly url(which may be replaced by url rewrite for a more friendly url), you can get the request data with $_SERVER on server side – that is $_SERVER=7 in your given url.