Sum

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C3

    Sum

    How to sum two numbers in input boxes in html code by pressing a button and
    show sum of these numbers.


  • Mark Tranchant

    #2
    Re: Sum

    C3 wrote:
    [color=blue]
    > How to sum two numbers in input boxes in html code by pressing a button and
    > show sum of these numbers.[/color]

    Can't be done with "html code".

    You'd need to do it client-side (ie on the user's machine) with
    Javascript, or server-side with something like PHP.

    --
    Mark.

    Comment

    • brucie

      #3
      Re: Sum

      in post: <news:zdlsc.780 2$NK4.895127@st ones.force9.net >
      Mark Tranchant <mark@tranchant .plus.com> said:
      [color=blue][color=green]
      >> How to sum two numbers in input boxes in html code by pressing a button and
      >> show sum of these numbers.[/color][/color]
      [color=blue]
      > Can't be done with "html code".
      > You'd need to do it client-side (ie on the user's machine) with
      > Javascript, or server-side with something like PHP.[/color]

      or do it with both so if JS is unavailable its then done server side.

      --
      b r u c i e


      Comment

      • Stan Brown

        #4
        Re: Sum

        "Mark Tranchant" <mark@tranchant .plus.com> wrote in
        comp.infosystem s.www.authoring.html:[color=blue]
        >C3 wrote:[color=green]
        >> How to sum two numbers in input boxes in html code by pressing a button and
        >> show sum of these numbers.[/color]
        >
        >Can't be done with "html code".[/color]

        There seems to be widespread misconception about what HTML and CSS
        are. Somehow people seem to think that they are both complete
        programming languages, or perhaps that they are both magic.

        When somebody ask a question like the OP's, it's not possible to
        answer because the question itself is so wrongheaded. (I'm not
        putting down the OP for ignorance: we all start out ignorant.)

        We see frequent requests to do this or that completely irrelevant
        thing in HTML or CSS, where people seem to know no more than the
        four or three letters.

        Is there any nice words-of-one-syllable explanation, in no more than
        two paragraphs, that we could refer people to?

        --
        Stan Brown, Oak Road Systems, Cortland County, New York, USA

        HTML 4.01 spec: http://www.w3.org/TR/html401/
        validator: http://validator.w3.org/
        CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
        2.1 changes: http://www.w3.org/TR/CSS21/changes.html
        validator: http://jigsaw.w3.org/css-validator/

        Comment

        • Neal

          #5
          Re: Sum

          On Mon, 24 May 2004 10:30:56 -0400, Stan Brown
          <the_stan_brown @fastmail.fm> wrote:
          [color=blue]
          > There seems to be widespread misconception about what HTML and CSS
          > are. Somehow people seem to think that they are both complete
          > programming languages, or perhaps that they are both magic.[/color]

          There are words on this TV. Sounds like magic to me, evil witchcraft even
          ;)

          Comment

          Working...