Simon Gare wrote on 10 nov 2006 in
microsoft.public.inetserver.asp.general:
need to do a simple form calculation in asp based on values in 2 other
field and enter that data into table.
(field)SubTotal + (field)VAT = (Result in field)GrandTotal
========== test.asp ===========
<form method='post'>
<input name='subtotal'
value='<%= request.form("subtotal") %>'>
subtotal<br>
<input name='vat'
value='<%= request.form("subtotal") %>'>
vat in %<br>
<input type='submit' value='calculate'>
</form>
<table><tr>
<td>
GrandTotal:
<td>
<%= request.form("subtotal")*(1+request.form("vat")/100) %>
</table>
===============================
Any resources available
OK, please send € 1000.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)