帮我找一下ASP错误

来源:百度知道 编辑:UC知道 时间:2024/05/13 06:55:48
1.asp文件如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><% response.cookies("lastvisitcookie")=now()%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body><form action="2.asp" method="post"><table align=center><tr><td align="center">请输入你的名字:</td><td align="center"><input type="text" name="name"/>&

<body><%response.write("你的名字是:"&resquest.form("name"))%>
改为
<body>
<%
response.write "你的名字是:"&request("name")
response.write Request.Cookies("lastvisitcookie")
%>

我看了一下就发现一个错误了第一行@和LANGUAGE之间一定要有空格,否则编译会错误,其他地方没看

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>把这行拿掉,你也没用脚本,声明语言也没用。。