急!!!!!!!!!!!!!在线等!!!!!!!!1
为什么我的mypath参数在不能通过
<script>
function MM_jumpMenu(selObj){ //v3.0
var nn=selObj.options[selObj.selectedIndex].value;
var url="?mypath=<%=mypath%>&pageno="+nn;
window.navigate(url);
}
</script>
传到地址栏里呢??
全文:
-------------------------------
<!--#include file="config.asp" -->
<script>
function MM_jumpMenu(selObj){ //v3.0
var nn=selObj.options[selObj.selectedIndex].value;
var url="?mypath=<%=mypath%>&pageno="+nn;
window.navigate(url);
}
</script>
<%
mypath=request("mypath")
if mypath="" then mypath=" "
set rs=server.CreateObject("ADODB.RecordSet")
mysql="select * from N_artcle where Artcle_link='"&mypath&"'"
rs.Open mysql,conn,1,1
If rs.Eof or rs.Bof Then
response.write "<br><center>目前暂时还没有此类信息!"
response.end
else
mytitle=rs("Artcle_title")
%>
<table width="778" align="center" >
<tr>
<td align="center"><%=mytitle%></td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
%>
<%
pageno=cint(request("pageno"))
set rs2=server.CreateObject("ADODB.RecordSet")
Sql = "SELECT * FROM N_artcle "
rs2.open sql,conn,1,1
rs2.pagesize=10
mpage=rs2.pagecount
if pageno="" or pageno>mpage then
pageno=1
end if
if pageno<1 then pageno=1
rs2.absolutepage=pageno
loopno=10
do while not rs2.eof and loopno>0
response.write "m"
rs2.MoveNext
loopno=loopno-1
Loop
rs2.close
set rs2=nothing
conn.close
set conn=nothing
%>
页次:[<%=cint(pageno)%>/<%=mpage%>]
<%
response.write pageno
%>
<% if cint(pageno)>1 then %>
<a href='?pageno=<%=(pageno-1)%>&mypath=<%=mypath%>'><font color="#FF0000">上一页</font></a>
<% end if %>
<%if (mpage>1 and cint(pageno)<cint(mpage)) then%>
<a href='?pageno=<%=(pageno+1)%>&mypath=<%=mypath%>'><font color="#FF0000">下一页</font></a>
<%end if%>
跳转:
<select name="goto" onChange="MM_jumpMenu(this)">
<% for pno=1 to mpage%>
<option value="<%=pno%>" <%if pno=cint(pageno) then%>selected<%end if%>><%=pno%></option>
<% next %>
</select>
页
<%
If Request.ServerVariables("REQUEST_METHOD")="POST" Then
if request("HyName")="" and request ("Hypassword")="" then
response.write "您还没有<a href=#>注册</a>"
response.end
end if
HyName = trim(ChkString(Request.Form("HyName"),"save"))
HyPassword = Request.Form("HyPassword")
HyText = trim(ChkString(Request.Form("HyText"),"save"))
HyIp=Request.ServerVariables("REMOTE_ADDR")
conn.Execute ("INSERT INTO N_discuss (HyName,HyPassword,HyText,mypath,HyIp) VALUES ('"& HyName &"','"& HyPassword &"','"&HyText&"','"&mypath&"','"&HyIp&"')")
'conn.close
'set conn=nothing
else
%>
<script>
function CheckForm() {
var errorMsg = "";
if (document.LatticeEditorForm.HyText.value==""){
errorMsg += "\n\t留言不能为空";
}
if (errorMsg != ""){
msg = "_____________________________________________________\n\n";
msg += "此信息不能提交,因为有一些内容还未填写.\n";
msg += "请按要求把内容填完再提交.\n";
msg += "______________________________________________________\n\n";
msg += "以下内容要求填写: -\n";
errorMsg += alert(msg + errorMsg + "\n");
return false;
}
}
</script>
<form name="LatticeEditorForm" method="post" action="" onSubmit="return CheckForm();">
<table width="778" height="193" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="26">会员代号:
<input name="HyName" type="text" size="10">
密码:
<input name="HyPassword" type="password" size="15"></td>
</tr>
<tr>
<td><textarea name="HyText" cols="50" rows="10"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</td>
</tr>
</table>
</form>
<%end if%>