calculation of SUM on html page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manoj mishra
    New Member
    • Oct 2012
    • 1

    calculation of SUM on html page

    Please solve the above problem and give me one example of HTML Code for calculation of Two Numbers and then Their SUM.

    Thanks,

    Manoj Mishra
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    There is no such html code. You will have to use Javascript.

    Comment

    • ATNC33
      New Member
      • Sep 2012
      • 7

      #3
      Javascript or php. With html you can't do it! HTML is a formatting language. Not a programming language.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        HTML is a formatting language.
        though not much of it. without the default CSS in the browser, you wouldn’t have much fun. basically it’s just a data and data-structure format like XML.

        Comment

        • roberttonafelix
          New Member
          • Oct 2012
          • 16

          #5
          you can use this code:
          Code:
          <form>
          Width: <input name="width" /><br/>
          Length: <input name="length" /><br/>
          Area: <input name="area" readonly /><br/>
          <input type="button" value="Compute Area"
            onclick="this.form.area.value = this.form.width.value * this.form.length.value;" />
          </form>
          Here i am multiply two values and if u need u can extend...
          Last edited by zmbd; Nov 3 '12, 05:27 PM. Reason: Please use the <CODE/> button to format posted code.

          Comment

          Working...