Log in

View Full Version : How To Add prices an give Sub total



jags53
03-22-2009, 09:22 PM
Hi guys
am new to coding and html
I have a uni project going on, its a website in html, what i have been asked to do now is, for a product selected (maybe from a combobox) i would like the total price of all products selected to appear on a seperate page.

example a soft drink ($1.50) selected from a combo box and a burger ($2.00) selcted from a combo box, i would like the total of the above products to be shown on a seperate page.
what is this the best way to do this?

I would not know how to start, i already have a my webpages linked and my template setup, so i would like to carry on using this. im assuming maybe asp or java is the best bet?


any help would be greatly appreciated
thanks
J

Medyman
03-24-2009, 01:47 PM
im assuming maybe asp or java is the best bet?

You're right assuming that you mean JavaScript and not Java. Try doing a Google search for "math in javascript" or "math in ASP", etc... You'll get tons of results.