When this page loads, a JavaScript procedure is executed.
This procedure checks whether the client has a cookie
named cookie1.
If so, it retrieves from the cookie the values of the
four input fields and copies such values into
the fields of the form.
This Javascript procedure provides an example of
how to read a cookie.
Therefore, on a given client,
once cookie1 is created/maintained,
the form will always display the input
fields with initial values taken from the last
"Set cookie and send".
Using a cookie to retain user input is a
very common approach in the WEB.
The information retained
- is on the client, not on the server (host)
- can be retransmitted to the server
via some JavaScript (usually cookie data are
copied into hidden fields of a form)
Should you want to know more about our cookie JavaScript
procedure