PHP URL Parameters
From w3cyberlearnings
Contents |
PHP CURRENT URL Parameters
Get URL Parameters.
Example
<?php // http://www.woowood.com/index.php?c=3r4&id=3023 echo $_SERVER['REQUEST_URI']; echo "<br/>"; echo $_SERVER['QUERY_STRING']; ?>
Output
- The first returns with the file name and the URL parameters.
- The second returns with the URL parameters only.
/index.php?c=3r4&id=3023 c=3r4&id=3023
Related Links
Manage URL