jos
|
| posted on 30/1/07 at 06:24 PM |
|
|
HTML forms & calculators
Does anybody have any experience with creating forms to be used as calculators online
I can setup a spreadsheet and get it to do calculations automatically using if, sum, etc commands but I just cant figure out how to do it in html in a
form
The form I want to create wil have drop down menus so if the first menu = 1 and the second drop down = 1 i want it to return a result based on one
calculation. but if the first menu=2 and the second menu =1 i want it to perform a second (different) calculation and so on
Any help greatly appreciated.
.: Motorsport / motor racing circuit / track wall art Apex Traxs :.
|
|
|
|
|
RichardK
|
| posted on 30/1/07 at 08:59 PM |
|
|
Here you are mate as I'm feeling generous. Here or
h**p://www.kilmartin.it/uploads/adder.htm
Enjoy
Rich
Gallery updated 11/01/2011
|
|
|
jos
|
| posted on 30/1/07 at 09:04 PM |
|
|
excellent, thanks for that
how do I get it to multiply?
.: Motorsport / motor racing circuit / track wall art Apex Traxs :.
|
|
|
RichardK
|
| posted on 30/1/07 at 09:09 PM |
|
|
Look for this in the form
form.Answer.value = A + B;
and change to
form.Answer.value = A * B;
You may want to change the button label as well
Here is the link to the muliplier page
[Edited on 30/1/07 by RichardK]
Gallery updated 11/01/2011
|
|
|
jos
|
| posted on 30/1/07 at 09:51 PM |
|
|
larvely thank you very much
.: Motorsport / motor racing circuit / track wall art Apex Traxs :.
|
|
|