frmhello.htm

Page source

<HTML> <HEAD> <TITLE>interaction with client information -- input screen</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <Form name ="frmTest" action = "frmHello2.asp" method = post> Name: <input type = text name = "txtName"> <input type ="submit" value = "send name"> </form> </BODY> </HTML>

Explanation

This page contains only HTML, no programmed script. It displays a form with one textbox and one button.

The user enters a name into the textbox, then clicks the button. Clicking the button submits the information in the form to frmhello.asp. This is specified by the action attribute of the form.

Note that the form uses the post method of transmitting data to the server. That causes the values the user enters to be included in the body of the HTTP request. Using the alternative get method causes them to be appended to the URL.

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.