Getting Current Page Name and Parameters
Posted 22 June 2006 - 08:07 PM
Posted 22 June 2006 - 08:19 PM
How do I get the pagename and any parameters that are in the url? I can get the pagename with basename($_SERVER['PHP_SELF']); but it doesn't catch any parameters like pagename.php?lookhere=True
$_GET["lookhere"] would automatically contain the value of True. Use $_GET to get any variables from the URL.
Posted 22 June 2006 - 09:29 PM
Posted 23 June 2006 - 02:51 AM
$_SERVER["QUERY_STRING"] contains the just the query string, i.e. the part after the "?", but not including the "?".
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users