|
- <%
- Dim iVal
- Dim NO1,NO2
- NO1=Request.Form("no1")
- NO2=Request.Form("no2")
- If NO1<>"" AND NO2<>"" then
- iVal=NO1+NO2
- End if
- %>
- <form id="form1" name="form1" method="post" action="?">
- 数字一
- <input type="text" name="no1" id="no1" />
- 数字二
- <input type="text" name="no2" id="no2" />
- 结果
- <input type="text" name="no3" id="no3" value="<%= iVal %>" />
- <%
- If Request.Form("no1")<>"" And Request.Form("no2")<>"" Then
- Response.Write "<label>"&Cint(Request.Form("no1"))*Cint(Request.Form("no2"))&"</label>"
- <!--注:直接切换+-*/,即可-->
- End If
- %>
- <br>
- <br>
- <input type="submit" name="button" id="button" value="计算" />
- </form>
复制代码
试试看 |
|