Best of all, most of the functionality can be gained by using simple HTML tagging. A popular use of forms is to enable users to search a collection of documents. Other popular uses of forms are for soliciting reference questions, surveys, comments, placing orders, registering for services, subscribing to mail lists, or, reporting faults and errors. The browser reassembles the data packets, and displays the formatted document. The complete cycle of a form action is more complex.
Forms are HTML documents, written like any Web page with regular HTML code.
This means the first half of a form action-cycle is a simple document transfer as the form is retrieved from the server and displayed on the browser. But forms are used to gather information from the user, so unlike ordinary HTML documents, which are static pages of fixed information, forms permit users to input data and resubmit the document to the server. The program returns a result to the server The server relays the results to the browser. This script or program either transfers the data to another program for processing or processes the data itself. The significant point here is that the CGI script represents a call to another programming language or network protocol.