我的链接如下(index.php):
<a href="http://localhost/example-link.html">Example Link</a>
或者我的链接如下:
<a href="http://localhost/other.html">Other</a>
当单击链接时,我想从cat.php获取“example-link.html”ır“other.html”
猫.php
<?php
echo $_GET["cat"];
?>
我想打印 $_GET["cat"] (example-link.html 或 other.html)