html代码:
<button class="zan">
<i>$article_zan$</i>
</button>
asp代码:
<%
id1=request.querystring("id")
set rs=server.createobject("adodb.recordset")
sql="select [zan],[ip],[id] from [article] where id="&id1&""
rs.open(sql),cn,1,3
if not rs.eof then
rs("zan")=rs("zan")+1
rs.update
end if
rs.close
set rs=nothing
%>
我需要让html的button点击后执行asp里的+1,也就是button去这里( src="/inc/article_zan.asp?id=$article_id$"),怎么能让button到asp页面呢,求教
还有就是我的页面是手动生成静态页的,点赞不能实现实时显示,点赞了要后台生成更新才能显示点赞+1了....有什么方法破吗
<button class="zan">
<i>$article_zan$</i>
</button>
asp代码:
<%
id1=request.querystring("id")
set rs=server.createobject("adodb.recordset")
sql="select [zan],[ip],[id] from [article] where id="&id1&""
rs.open(sql),cn,1,3
if not rs.eof then
rs("zan")=rs("zan")+1
rs.update
end if
rs.close
set rs=nothing
%>
我需要让html的button点击后执行asp里的+1,也就是button去这里( src="/inc/article_zan.asp?id=$article_id$"),怎么能让button到asp页面呢,求教
还有就是我的页面是手动生成静态页的,点赞不能实现实时显示,点赞了要后台生成更新才能显示点赞+1了....有什么方法破吗

