how do i restricted the input in other boxes imediately...
Posted: Mon Sep 19, 2005 8:49 am
after user inputs number.
hi
i want to make three input boxes, for a game, i want the player to input
three separate values which must all add up to a 100. i don't know what to use
im currently using php, but i don't know if i should incorperate some javascript
to this situation. using either select or text boxes.
this is the code of the html
<td> <input type="text" name="agg5" size ="2"> </td>
<td> <input type="text" name="pat5" size ="2"> </td>
<td> <input type="text" name="tri5" size ="2"> </td>
i want the person to enter the first number, then i make sure it is below a hundered and above 0
while also restricting their second input to below 100 - first_input and above 0
then the third to below 100-first_input+second input
thank you
hi
i want to make three input boxes, for a game, i want the player to input
three separate values which must all add up to a 100. i don't know what to use
im currently using php, but i don't know if i should incorperate some javascript
to this situation. using either select or text boxes.
this is the code of the html
<td> <input type="text" name="agg5" size ="2"> </td>
<td> <input type="text" name="pat5" size ="2"> </td>
<td> <input type="text" name="tri5" size ="2"> </td>
i want the person to enter the first number, then i make sure it is below a hundered and above 0
while also restricting their second input to below 100 - first_input and above 0
then the third to below 100-first_input+second input
thank you