28,406
社区成员
发帖
与我相关
我的任务
分享
<%@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 A1 '总面积
Dim A2 '商用面积
'Dim ... .. .
A1 = Request("A1") '取得输入的总面积
A2 = Request("A2") '取得输入的商用面积
'----以下计算
Dim Cost1 '总金额
Cost1 = A1 * 100 + A2 * 50 '请自定义公式
Response.Write "计算结果:"
Response.Write "<br>总面积为:" & A1
Response.Write "<br>商用面积:" & A2
Response.Write "<br>总金额为:" & Cost1
%>
<form method="POST" action="me.asp">
<p>请输入总面积<input type="text" name="A1" size="20">
<p>请输入商用面积<input type="text" name="A2" size="20">
<input type="submit" value="提交" name="B1">
<input type="reset" value="重置" name="B2"></p>
</form>
</body>
</html>