echo "<a href='phpwan.php?pageno=" . ($pageno+1) . "'>下一页</a>"
以下使用JQUERY插件的<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#links a").click(function(){
$("#links a").each(function(i,dom){
$(dom).removeAttr("style")
})
$(this).attr("style","background-color:#F00")
})
})
</script>
<body>
<div id="links">
<a href="javascript:">1111111</a><br />
<a href="javascript:">2222222</a><br />
<a href="javascript:">3333333</a><br />
<a href="javascript:">4444444</a><br />
<a href="javascript:">5555555</a><br />
<a href="javascript:">6666666</a><br />
<a href="javascript:">7777777</a><br />
<a href="javascript:">8888888</a><br />
</div>
</body>
</html>
当然有问题!
index.php
<html><head>
<title>My Store</title>
</head>
<body>
<a href='index1.php?subject_id=8'>Test</a>
</body>
</html>
index1.php
<?phpecho $_SERVER['QUERY_STRING']
?>
这个是我写的,比较简单的~
欢迎分享,转载请注明来源:优选云