Handling Cookies - Advanced example |
![]() Enter the following data to register as guest: | |
Your last name: | |
Your company: | |
Your e-mail: | |
![]() |
In this example, the form invokes a CGI, program cookie1 in library js2. The CGI
Note that the form has two buttons:
When this page loads, a JavaScript procedure is executed.
This procedure checks whether the client has a cookie
named cookie1. 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
Should you want to know more about our cookie JavaScript procedure
|