Hey guys,

So I'm looking for a way to create a form which basically calculates the input given.

Like you enter the first integer in 1st input field, second in second input field, push a button and it calculates the answer.

Any help would be appreciated.

That's the thing, those can be found easily, but I need something like this form.

<html>
    <head>
    <title>Untitled Document</title>
    </head>

    <body>
    <table width="200" border="0">
      <tr>
        <td>
        <input type="text" name="integer1" value="" maxlength="100" />
        </td>
      </tr>
      <tr>
        <td><input type="text" name="cmd" value="" maxlength="100" /></td>
      </tr>
      <tr>
        <td><input type="text" name="integer2" value="" maxlength="100" /></td>
      </tr>
      <tr>
        <td><input type="button" value="Calculate" /></td>
      </tr>
    </table>
    </body>
    </html>

copy paste it into a notepad and save as .html , that's the form I need to make work as a calculator.

What Process is in your calculation (e.g addition,multiplication ,etc.) ?
What Should the user input to the fields?

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.