The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Automatic calculations

Hello,

I've got a site, and working in XHTML Transitional, i've got to a page in which i want to add an automatic calculation which stays fixed on the bottom edge of the window. I've added a form that contains dropdown choices and text areas.

Thorough explanation:
This is a DVD creation business, for personal occasions, business conferenece slideshows, school presentations etc.
For each picture they wish to use will cost them, lets say, 15p, they access the dropdown menu and tick that they want, say 30 pictures, once they select this, the calculation will automatically update and show the total price.
(15p*30p = £4.50 obviously)

Hi Joe, you would simply take the same principle and expand the function (see example below).

If you wanted to make this re-usable, I would make a generic class that you feed the names of the inputs into, but this should give you an idea (I've also put the price as a hidden fields, as the users shouldn't really be changing your prices!!, not sure why I did that lol)