The question mark allows data to be passed to that php file.
http://www.webmaster-talk.com/usercp.php?:
This will do nothing as there is no data after the '?', but it is there for future url's where there would be data to pass.
http://www.webmaster-talk.com/member.php?&u=13247
This one holds the data '13247' as 'u'. Within the member.php file, there will be code that looks for any data defined as 'u' and if found it will then perform a different function from normal.
So, we could have the following in member.php:
PHP Code:
$user = $_GET['u'];
if ($user == '13247')
{ $rank = 'member'; }
else
{ $rank = 'guest'; }
Hope this helps,
Steve.
|