Printable Version | Subscribe | Add to Favourites
New Topic New Poll New Reply
Author: Subject: HTML forms & calculators
jos

posted on 30/1/07 at 06:24 PM Reply With Quote
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 :.

View User's Profile Visit User's Homepage View All Posts By User U2U Member
RichardK

posted on 30/1/07 at 08:59 PM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
jos

posted on 30/1/07 at 09:04 PM Reply With Quote
excellent, thanks for that

how do I get it to multiply?





.: Motorsport / motor racing circuit / track wall art Apex Traxs :.

View User's Profile Visit User's Homepage View All Posts By User U2U Member
RichardK

posted on 30/1/07 at 09:09 PM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
jos

posted on 30/1/07 at 09:51 PM Reply With Quote
larvely thank you very much





.: Motorsport / motor racing circuit / track wall art Apex Traxs :.

View User's Profile Visit User's Homepage View All Posts By User U2U Member

New Topic New Poll New Reply


go to top






Website design and SEO by Studio Montage

All content © 2001-16 LocostBuilders. Reproduction prohibited
Opinions expressed in public posts are those of the author and do not necessarily represent
the views of other users or any member of the LocostBuilders team.
Running XMB 1.8 Partagium [© 2002 XMB Group] on Apache under CentOS Linux
Founded, built and operated by ChrisW.