比如如下这个链接<a href='http://www.xxx.com?id=1 target='_blank' >A文章</a>我想点击玩之后 执行数据库的更新update table set clicks=clicks+1 where id=1;也就是更新点击量!
但是不知道如何一步实现;自己想了一个办法:<a href='do/link.php?url_path=http://www.xxx.com?id=1' target='_blank' >A文章</a>就是跳到link.php页面 然后GET方法获取ID 在更新ID 并显示http://www.xxx.com网页但是我现在不想这样做了!求大家指点!
但是不知道如何一步实现;自己想了一个办法:<a href='do/link.php?url_path=http://www.xxx.com?id=1' target='_blank' >A文章</a>就是跳到link.php页面 然后GET方法获取ID 在更新ID 并显示http://www.xxx.com网页但是我现在不想这样做了!求大家指点!
最简单的
<a href='http://www.xxx.com?id=1 target='itemp' >A文章</a>
<iframe name="itemp" width=0 height=0></iframe>
document.from.action='count.php';//传到统计页面!执行更新数据库!
document.from.submit(); //提交
window.location.href='http://www.xxx.com';//并跳转
}