A generally more reliable method of passing information to a CGI program is the POST method.
But for a commercial website it is required to maintain session information among different pages.
For example one user registration ends after completing many pages.
All the CGI Programs to be executed by the HTTP server are kept in a pre-configured directory.
This directory is called CGI directory and by convention it is named as /var/www/cgi-bin.
There is a CGI library written for C program which you can download from ftp://org/gnu/cgicc/ and follow the steps to install the library − You can check related documentation available at ‘C CGI Lib Documentation.
You must have come across many situations when you need to pass some information from your browser to web server and ultimately to your CGI Program.
But how to maintain user's session information across all the web pages.
In many situations, using cookies is the most efficient method of remembering and tracking preferences, purchases, commissions, and other information required for better visitor experience or site statistics.
Your server sends some data to the visitor's browser in the form of a cookie. If it does, it is stored as a plain text record on the visitor's hard drive.
Now, when the visitor arrives at another page on your site, the cookie is available for retrieval.
Checkboxes are used when more than one option is required to be selected.