The code below accepts two numbers from textboxes and should show the addition in the third one.I can t figure out how to display addition in the third text box...
Code:
<html>
<body>
<form action="addition_n.asp" method="post">
First number: <input type="text" name="no1" size="20" />
<p>
Second number: <input type="text" name="no2" size="20" value="5" />
</p>
<p>
Addition: <input type="text" name="no3" size="20"/>
</p>
<p>
<input type="submit" value="Submit" onclick="call add()" />
</p>
<%
sub add()
dim n1,n2,n3
n1=cint(Request.form("no1"))
n2=cint(Request.form("no2"))
n3=n1+n2
Response.write(n3)
end sub
call add()
%>
</form>
</body>
</html>
Comment