针对某一条新闻发表评论,新闻的ID怎么传到评论存储程序里面啊?我的评论程序是提交是这样的:
form action="plsave.asp" method="post">
<table width="776" cellspacing="0" cellpadding="0">
<tr>
<td width="80" height="23" bgcolor="#F0FFF1"><div align="center">您的大名:</div></td>
<td width="694"><font color="#0000FF">
<input size=20 name=name>
</font> <span class="style9">*</span></td>
</tr>
<tr>
<td height="29" bgcolor="#F0FFF1"><div align="center"><span class="style9">评论主题</span>:</div></td>
<td height="29"><font color="#0000FF">
<input name=title id="title" size=50>
</font> <span class="style9">*</span></td>
</tr>
<tr>
<td height="41" rowspan="2" bgcolor="#F0FFF1"><div align="center">评论内容:</div></td>
<td height="20" valign="middle"><span class="tablebody1">
<TEXTAREA class=FormClass onkeydown=ctlent() title=可以使用Ctrl+Enter直接提交贴子 name=Content rows=7 wrap=VIRTUAL cols=80></TEXTAREA>
</span><span class="style9">*</span></td>
</tr>
<tr>
<td height="21" valign="middle">
<div align="left">
<input type="submit" name="Submit" value="提交">
<input name="reset" type="reset" id="reset" value="重置">
</div></td>
</tr>
</table>
</form>
这个程序是内嵌在新闻显示页上的,不知道如何将该页新闻的newsid传到评论存储程序上去,
新闻存储程序如下:
<%
dim name,ip,time,title,content,icount,id
dim newsid,sql,tj
content=changechr(request("content"))
iCount=0
set rs=server.createobject("adodb.recordset")
sql="select * from pl"
rs.open sql,conn,1,3
rs.addnew
rs("name")=request("name")
rs("content")=content
rs("title")=request("title")
rs("time")=now()
rs("newsid")=request("id")
rs("ip")=Request.ServerVariables("REMOTE_ADDR")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect ("plnews.asp?newsid="&id)
sub HtmEnd(Msg)
set upload=nothing
response.write "<br>"&Msg&" [<a href=""javascript:history.back();"">·μ??</a>]</body></html>"
response.end
end sub
%>
请高手指点