ASP 代码 谁帮写下!!

来源:百度知道 编辑:UC知道 时间:2024/06/08 08:51:33
线速度 V=PI*D*N/60*1000
n: RPM Maximum Rotation Speed Per Minute
V: Linear Speed (m/s)
D: Outer Diameter (mm)
PI=3.1416
格式如下
文本字段(显示结果)=Pi * D(输入字段)*N(输入字段)/60*1000 按钮

哪位大虾给个代码!谢谢!

必有重谢!!
要求 在一个页面显示!
点击 计算按钮后 要在 显示结果那显示出来!

最好用到SUB方法 因为这样的公式还有很多! 所以只要大家写一个 剩下的我自己写!

大家写出来 我立刻给分!
我绝不是食言的人!谁的先成功 我就先给谁!

已经写好了,测试:
http://www.ruiyuan-power.cn/test.asp

代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<% 
PI=3.1416
D=request.Form("textfield")
N=request.Form("textfield2")
function compuResult()
    if request("Action")="comp" and d<>"" and n<>"" then
        compuResult=Pi*D*N/60*1000
    end if
end function
 %>
<form name="form1" method="post" action="?Action=comp">
  <p