HTML add up selected objects

Mmmm... Cocks...Mmmm... Cocks... Registered User regular
edited March 2010 in Help / Advice Forum
A strange question. I'm in a very simple web programming class. We've touched on a couple different things and we're on forms right now. So far I think I've done all this stuff in the fifth grade.
However the homework assignment has thrown me a curve ball.

I made a restaurant menu filled with lovely things such as drop down menus for food radio boxes etc etc.
But we need to keep a running total for whatever the customer clicks at the bottom of the page.

I'm not even sure what to search for this. I've never heard of this kind of tag before.

Mmmm... Cocks... on

Posts

  • DrFrylockDrFrylock Registered User regular
    edited March 2010
    You'll need some very basic Javascript for this, I'd think.

    DrFrylock on
  • PerpetualPerpetual Registered User regular
    edited March 2010
    Cookies.

    http://en.wikipedia.org/wiki/Cookie_%28browser%29#Uses

    Specifically, "session management" section is what you're looking for.

    Implementation is up to you though.

    Perpetual on
  • Mmmm... Cocks...Mmmm... Cocks... Registered User regular
    edited March 2010
    DrFrylock wrote: »
    You'll need some very basic Javascript for this, I'd think.
    Ah crap, this sounds right. We did start Javascript.
    I've been looking in the wrong places.

    Thanks gents. This can probably be locked.

    Mmmm... Cocks... on
  • GothicLargoGothicLargo Registered User regular
    edited March 2010
    DrFrylock wrote: »
    You'll need some very basic Javascript for this, I'd think.
    Ah crap, this sounds right. We did start Javascript.
    I've been looking in the wrong places.

    Thanks gents. This can probably be locked.

    Hmmmmm... is this an introductory college course?

    I'll tell you, they're teaching you stuff which is a little out of vogue to be entirely honest. There's a fine line between stuff that should be done on the client side in javascript vs stuff that should be done on the server side using ajax to tie back to it. The line keeps shifting every few years as programming styles bicker over the correct balance.

    GothicLargo on
    atfc.jpg
Sign In or Register to comment.