请帮我看看这些asp代码错在哪里?

来源:百度知道 编辑:UC知道 时间:2024/05/14 19:30:25
1)
<%Option Explicit%>
<html>
<head>
<title>Do....Loop循环语句用法示例</title>
</head>
<body>
<%
Dim sum,I
sum=0
I=1
Do while I<=100
sum=sum+I^2
I=1
Loop
Response.Write"1到100的平方和="&CStr(sum)
%>
</body>
</html>

2)
<% OptionExplicit %>
<html>
<head>
<title>Request的Form获取方法用法示例</title>
</head>
<body>
<h2 align=center>下面是您的个人信息</h2>
<%
Dim user_name,password,sex,love,career,introduction
user_name=Request.Form("user_name")
password=Request.Form("password")
sex=Request.Form("sex")
love=Request.Form("love")
career=Request.Form("career")
introduction=Request.Form("introduction")
Response.Write "<br>姓名:"&user_name
Res

1)
Do while I<=100
sum=sum+I^2

I=I+1 '搂主原来写的是死循环吧

Loop
===============================
3)
<a href="4-7.asp?name=白芸&age=22">显示</a>

===============================
其他貌似没错