Forum Moderators: open

Message Too Old, No Replies

xhtml coding of a menu that calculates a subtotal?

form coding, form code, calculate form

         

danielleid

8:32 pm on Dec 1, 2006 (gmt 0)

10+ Year Member



Can someone explain or better yet show me an example of html code that I would add to an online restaurant menu to get it to add/calculate prices of items that customers choose off the menu --ie

there would be drop down menus that allow the customer to choose between items, choose them an add them up...

taco $6.50
burritto $5.50
cola $1.50
subtotal=

the data will be sent simply by email. Can anyone help me?

thanks!
Danielle

tedster

11:36 pm on Dec 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Danielle, and welcome to the forums.

HTML will not do that kid of thing - you need to use some scripting. If you just want the client-side to calculate the information, try javascript. Or you can send form data to your server and do the calculation with whatever server-side scirpting you have available.