HTML calculator???????????????

jordan1794

New member
Hi I am doing a little project for a game I play,basically I want to see with what troops do I get the best infantry,calvary,and archer defense.

I made a calculator to do this but when you submit it just dissapears,please tell me how I can get this to work.

P.S. NO javascript,if it can't be done without it then don't bother ansering

Also I only have 1 troop type for now.
<FORM NAME="Calc">
<TABLE BORDER=4>
<TR>
<TD>
Total Defense:</td>
</tr>
<tr>
<td>
Infantry:<INPUT TYPE="text" NAME="Infantry" Size="16">
</TD>
</TR>
<tr>
<td>
Calvary:<INPUT TYPE="text" NAME="Calvary" Size="16">
</TD>
</TR>
<tr>
<td>
Archers:<INPUT TYPE="text" NAME="Archers" Size="16">
</TD>
</TR>
<TR>
<TD>
Squires<INPUT TYPE="text" NAME="one" VALUE="" Onsubmit="Calc.Infantry.value += '100' "Calc.Calvary.value += '200'" "Calc.Archers.value += '400'>
</TD>
</TR>
<tr>
<td><INPUT TYPE="submit" NAME="submit" VALUE="submit"></td>
</tr>
</TABLE>
</FORM>
I know HTML isn't for programming but I also know that there are tons of HTML calculators that work out there.
 
Back
Top