<html>
<head>
<title>用if…else…end if编写收款程序</title>
</head>
<body>
<%
  x=request.Form("text1")
  if x<300 then y=x*0.75 else y=x*0.6
%>
<form name = "form1" method="post" action="">
输入你的消费金额：<input type="text" name="text1" size="20" value="<%=x%>"><br>
实际应付消费金额：<input type="text" name="text2" size="20" readonly value="<%=y%>"><p>
<input type="submit" value="显示结果" name="btnshow">&nbsp;&nbsp;
<input type="reset"  value="全部重写" name="btnreset"></p>
</form>
</body>
</html>
