View Full Version : calculate something!!

09-30-2003, 02:31 PM
Hi everyone:
I have another question:
When customer order somethings and click a button called "calculate total", I want it to go to another page called "summay" page and it would list what they all bought and give them the total including the tax, s&h, etc.... How do I do it?

ps: can it be done in HTML also? or only JS?
HELP!!!!!!!!!!!!!!!!!! Thanks

09-30-2003, 04:59 PM
it is going to have to done in JS but a server side language would be the best way.

09-30-2003, 09:50 PM
can you help me with the code? Thanks

09-30-2003, 10:12 PM
He's right about only being able to use JavaScript rather than just plain HTML.
He's also right about it being better to use a server-side language, I personally would use ASP because that's the only server-side language I know. Although I would have to battle through very unfamiliar code to get to the required script.

In the mean time, here's a Shopping Cart script, it doesn't work properly in Opera, but as I keep promising myself I'll get round to fixing that one of these days.
Perhaps I'll even muddle round to combining it with this (http://www.codingforums.com/showthread.php?s=&postid=139426#post139426) script.