ASP的Response.Write语句为什么不执行
logtc.asp内容如下<HTML><HEAD><%Ifrequest("login")="login"Thenname=request("name")liuyan=r...
logtc.asp内容如下
<HTML>
<HEAD>
<%
If request("login")="login" Then
name=request("name")
liuyan=request("liuyan")
Response.Cookies("VisitorName")=Request.Form("name")
End If
%>
</HEAD>
<BODY>
<form action="logtc.asp" method="post">
<TABLE border="2" width="50%" id="table1" cellpadding="0">
<TR>
<TD>用户名</TD>
<TD><input type="text" name="name" size="20"></TD>
</TR>
<TR>
<TD>留言</TD>
<TD><input type="text" name="liuyan" size="50"></TD>
</TR>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
</tr>
<input type="hidden" name="login" value="login">
<TR>
<TD>Response.Write(name)</TD>
<TD>Response.Write(liuyan)</TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>
在运行这个程序时,表格里Response.Write(name)和Response.Write(liuyan)
不显示之前输入的东西,只显示这2行代码
请问是什么问题,代码是程序书上找的
是环境没搭建好吗?(IIS已装、站点也设置好)
需要设置浏览器 还是装上Framework什么的?
感谢 展开
<HTML>
<HEAD>
<%
If request("login")="login" Then
name=request("name")
liuyan=request("liuyan")
Response.Cookies("VisitorName")=Request.Form("name")
End If
%>
</HEAD>
<BODY>
<form action="logtc.asp" method="post">
<TABLE border="2" width="50%" id="table1" cellpadding="0">
<TR>
<TD>用户名</TD>
<TD><input type="text" name="name" size="20"></TD>
</TR>
<TR>
<TD>留言</TD>
<TD><input type="text" name="liuyan" size="50"></TD>
</TR>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
</tr>
<input type="hidden" name="login" value="login">
<TR>
<TD>Response.Write(name)</TD>
<TD>Response.Write(liuyan)</TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>
在运行这个程序时,表格里Response.Write(name)和Response.Write(liuyan)
不显示之前输入的东西,只显示这2行代码
请问是什么问题,代码是程序书上找的
是环境没搭建好吗?(IIS已装、站点也设置好)
需要设置浏览器 还是装上Framework什么的?
感谢 展开
2个回答
展开全部
<HTML>
<HEAD>
<%
If request("login")="login" Then
name=request("name")
liuyan=request("liuyan")
Response.Cookies("VisitorName")=Request.Form("name")
End If
%>
</HEAD>
<BODY>
<form action="logtc.asp" method="post">
<TABLE border="2" width="50%" id="table1" cellpadding="0">
<TR>
<TD>用户名</TD>
<TD><input type="text" name="name" size="20"></TD>
</TR>
<TR>
<TD>留言</TD>
<TD><input type="text" name="liuyan" size="50"></TD>
</TR>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
</tr>
<input type="hidden" name="login" value="login">
<TR>
<TD><%Response.Write(name)%></TD>
<TD><%Response.Write(liuyan)%></TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>
<HEAD>
<%
If request("login")="login" Then
name=request("name")
liuyan=request("liuyan")
Response.Cookies("VisitorName")=Request.Form("name")
End If
%>
</HEAD>
<BODY>
<form action="logtc.asp" method="post">
<TABLE border="2" width="50%" id="table1" cellpadding="0">
<TR>
<TD>用户名</TD>
<TD><input type="text" name="name" size="20"></TD>
</TR>
<TR>
<TD>留言</TD>
<TD><input type="text" name="liuyan" size="50"></TD>
</TR>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
</tr>
<input type="hidden" name="login" value="login">
<TR>
<TD><%Response.Write(name)%></TD>
<TD><%Response.Write(liuyan)%></TD>
</TR>
</TABLE>
</form>
</BODY>
</HTML>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询