Home  >  Article  >  Backend Development  >  PHP如何判断用户点击哪个链接

PHP如何判断用户点击哪个链接

WBOY
WBOYOriginal
2016-06-13 13:45:241003browse

PHP怎么判断用户点击哪个链接
假设有一个页中有3个连接,那么如何判断用户点击了哪个连接呢,要根据用户点击不同的连接响应不同的事件。 PHP怎么判断用户点击哪个链接

------解决方案--------------------
可以用JavaScript判断,

点击链接时激发一个事件,发送不同参数就可以了。
------解决方案--------------------
楼上正解 onclick 触发不同的事事件
------解决方案--------------------
加个判断就可以了

------解决方案--------------------
超链接
超链接
超链接

//reque.php//
echo $_GET['ID'];
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn