Click to See Complete Forum and Search --> : I'm looking for simple calculation code


jamesx521
07-13-2005, 03:16 PM
Let's say client check-marks button A -- $1,
and check-marks button B -- $2,
then clicks on Submit button -- the answer comes up as Total = $3.

Or, I've seen websites where there isn't even a Submit button: the amount gets calculated as the client check-marks the buttons.

If not PHP, any other advises? Thanks.

-jms

Bootsman123
07-13-2005, 03:51 PM
It's probably Javascript and you could also take a look at AJAX (which is a little bit different than Javascript alone).

pyro
07-13-2005, 06:12 PM
Probably no need for AJAX for this, just a simply JavaScript function to do the calculation. I know AJAX is all the rave right now, but using it for things like this seems silly to me.

Bootsman123
07-14-2005, 12:03 AM
AJAX is probably overdone, but still for a simple project it's great to learn it =).