Processing user input:
Statements: <Form>…….</Form>
| Field Type | HTML Tag | Note |
| Input/Output type | <input type=”text”
name=”A” value=”B”> |
The field is filled with the
value B. |
| Password field | <input type=”password”
name=”A”> |
|
| Checkbox | <input type=”checkbox”
name=”A” value=”X”> |
The name/value pair A=X
is then sent with the HTTP request to the receiver, if the checkbox is ticked. |
| Radio button | <input type=”radio”
name=”A” value=”X”> |
All of the selection buttons
in a group have the same name (but different values). |
| Dropdown list | <select name=”A”>
<option value=”B”> Disp </option> … </select> |
The user sees the values
specified between <option> and </option> (in this example, Disp). |
| Input area with
more than one line |
<textarea name=”A”
rows=”…” cols=”…”> |
|
| Send button | <input type=”submit”
name=”A” value=”Send”> |
The text specified after the
value addition appears on the button as a label. |
Static Navigation:
<Form method=……. Action=……>
| Attribute | Description |
| method=″type″ | This attribute specifies how the system sends the form
to the server (that is, which method is used). GET The query string is appended to the URL, separated by a question mark (?). The query string appears in the address bar in the browser! The maximum length of the query string is 4 KB. This is the default method. POST The data is sent to the server in the HTTP body, which means that it does not appear in the address bar in the browser. The data is not buffered in an HTTP cache. There is no limit to the length of the query string. |
| ACTION=″execution″ | This attribute specifies the program that the query
string executes on the server. |
Example:
<a href=http://xxxxx> Text </a>
<a href=”bsp.htm”> Text </a>
<Form action = “bsp.htm” method = “get”>
<input type = “submit” value=”click” name=”BUTTON”>
No Comments