PHP+MySQL实现输入页码跳转到指定页面功能示例
=1;};?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>查询结果的分页显示</title>
<style type="text/css">
<!--
.style1 {font-size: 12px}
.style2 {font-size: 13px}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<script language="javascript">
function chk(form){
if(form.page.value<=0||form.page.value>form.pages.value){
alert("您输入的页码无效!!");
form.page.focus();
return(false);
}
return(true);
}
</script>
<body>
<table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#11dff0">
<tr>
<td width="100" height="25" align="center" bgcolor="#11dff0" class="style2">姓名</td>
<td width="100" align="center" bgcolor="#11dff0" class="style2">编号</td>
<td width="125" align="center" bgcolor="#11dff0" class="style2">电话</td>
<td width="175" align="center" bgcolor="#11dff0" class="style2">地址</td>
</tr>
<?php
if($_get
3
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
HTTP状态码大全
转自:https://www.cnblogs.com/lxinxuan/archive/2009/10/22/1...
[阅读全文]
-
-
-
-
-
-
-
-
网友评论