Calc.htm

Page source

<HTML> <HEAD> <TITLE>calculation example -- input screen</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <b>Adding Machine</b> <hr> <p> <Form name = "frmTest" action = "Calc.asp" method = post> First Number: <input type = text name = "txtN1"><p> Second Number: <input type = text name = "txtN2"><p> <input type = "submit" value = "Add Them"> </form> </BODY> </HTML>

Explanation

This is a static HTML page that displays a form with two textboxes and a button. The user enters values into the textboxes then clicks the button. When the button is clicked, the values in the form are submitted to the server along with a request for the page Calc.asp.

You can refer to this summary of HTML Form tags and selected attributes.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.