My link as below(index.php):
<a href="http://localhost/example-link.html">Example Link</a>
or maybe my link as below:
<a href="http://localhost/other.html">Other</a>
When click to the link I want to get “example-link.html” ır “other.html” from cat.php
Cat.php
<?php
echo $_GET["cat"];
?>
I want to print $_GET[“cat”] (example-link.html or other.html)
The predefined variable
$_SERVERwill contain some of that information, perhaps theREQUEST_URI