这个ASP程序为什么得不到满意的结果,还请个位大哥大姐们解决一下啊!!!!
当然楼主大爷,一定也要多多的帮忙啊!!!!!!<% sub display()%>
<table border=1>
<tr>
<td>
<form action="18.asp" method="post">
<input type="text" name="n1">
<input type="text" name="n2"><br>
<input type="submit" value="确定">
</form>
</td>
<tr>
</table>
<%end sub%>
<% function mmcc()
n1=request("n1")
n2=request("n2")
if n1=1 and n2 =1 then
response.Write("你连1加1也不知道了吗?!!!")
else
nndd
end if
end function
sub nndd()
if n1<>empty and n2<>empty then
n=Cdbl(n1)+CDbl(n2)
response.Write(n)
end if
end sub %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ASP调用</title>
</head>
<body>
<%display()%>
<%mmcc()%>
</body>
</html>
[此贴子已经被作者于2005-12-3 11:48:13编辑过]