道理很简单
通过输入一个数字也就是页号 来显示这个页号的信息
<form name="form1" method="post" action="?action=text">
转到
<input name="p" type="text" size="2" maxlength="4" value="<%=pages%>" style="height:12px;" onFocus="javascript:this.select();">
页
<input type="button" name="button" value="确定" class="button" onClick="javascript:document.form1.submit();">
</form>
判断再做跳转
action = Trim(Request.QueryString("action"))
p = Trim(Request.Form("p"))
If action="text" And p<>"" And IsNumeric(p) Then
p = Cint(p)
Response.Redirect("?page="&p&"")
Response.End()
End If
pages = Trim(Request("page"))
If pages = "" Then pages = 1
If Not IsNumeric(pages) or Instr(pages,"-")<>0 or Instr(pages,".")<>0 Then
Response.Write("<script>alert('非法操作!');history.back()</script>")
Response.End()
End If