请教
html---------<html >
<head>
<title>表</title>
</head>
<body>
<form method="post" action="tax.asp">
<p>工资: <input name="s1" type="text" value="s1" size="20"></p>
<p><input type="submit" name="button1" value="计算" ></p><br>
<p>税款:<input name="s2" type="text" value="s2"size="20"></p><br>
<p>税后:<input name="s3" type="text" value="s3" size="20"></p>
<p><input name="botton2" type="reset" value="重置" ></p>
</form>
</body>
</html>
asp-------
<html >
<head>
<title>tax.asp</title>
</head>
<body>
<script for="button1" event="onclick" language="vbscript">
dim salary,miuns,tax
salary=miuns-1600
salary=s1.value
if salary>=100000 then
tax=(salary-100000)*0.45+(25+150+450+3000+5000+6000+7000+8000)
else if salary>=80000 then
tax=(salary-80000)*0.40+(25+150+450+3000+5000+6000+7000)
else if salary>=60000 then
tax=(salary-60000)*0.35+(25+150+450+3000+5000+6000)
else if salary>=40000 then
tax=(salary-40000)*0.30+(25+150+450+3000+5000)
else if salary>=20000 then
tax=(salary-20000)*0.25+(25+150+450+3000)
else if salary>=5000 then
tax=(salary-5000)*0.20+(25+150+450)
else if salary>=2000 then
tax=(salary-2000)*0.15+(25+150)
else if salary>=500 then
tax=(salary-500)*0.10+25
else if salary>=0 then
tax=salary*0.05
else if then
tax=0
end if
tax=s2.value
miuns-tax=s3.value
</script>
<%
miuns=request.QueryString("s1")
tax=request.Form("s2")
salary=request.Form("s3")
%>
</body>
</html>想把 html的输入数据提交给ASP 脚本如何实
[[it] 本帖最后由 走一圈 于 2008-10-1 17:07 编辑 [/it]]