郑州几个海鲜批发市场:我编的ASP程序怎么不运行啊?求求大师帮忙

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 23:13:08
我正在学asp编的一个程序不运行求求帮忙解决.程序如下:我用的编辑器是
Dremweaver 8.0
form1.htm
<!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 id="form1" name="form1" method="post" action="form1.sap">
<label>请再次输入客户资料:<br />
<br />
你的姓名:
<input name="name" type="text" id="name" />
</label>
<p>
<label>你的年龄:
<select name="age" id="age">
<option>0岁至10岁</option>
<option selected="selected">10岁至20岁</option>
<option>30岁至40岁</option>
<option>40岁至50岁</option>
</select>
</label>
</p>
<p>
<label>联系电话:
<input name="phone" type="text" id="phone" />
</label>
</p>
<p>
<label>
<input type="submit" name="B1" value="确认提交" />
</label>
<label>
<input type="reset" name="B2" value="全部重填" />
</label>
</p>
</form>
</body>
</html>
form1.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
<%
Dim name,age,phone
name=request.Form("name")
age=request.Form("age")
phone=request.Form("phone")
response.Write name
response.write age
response.Write phone
%>
</body>
</html>

细心点哦
form1.htm中的表单
<form id="form1" name="form1" method="post" action="form1.sap">
form1.sap应该是form1.asp吧?

怎么不运行啊??说具体一点。
是不是你没配好IIS啊??

<form id="form1" name="form1" method="post" action="form1.sap"> ?? sap??