This section explains the processing flow using CGI.
When a URL (Uniform Resource Locator) is entered in the WWW browser (client), an HTML document (later called "Web page for invoking application") that was previously registered in the WWW server is typically returned to the client and displayed.
When the Web application Submit button on the application-invoking Web page that is displayed on the WWW browser is clicked, the request is sent back to the WWW server and it generates a new process and activates the Web application. When text input items are included on the application-invoking Web page, the user-input data is passed as transfer data (also called "Web parameters") to the Web application invoked on the WWW server.
The Web application executes the following processing:
Execution of main program and execution of initialization code
Retrieval of Web parameters
Execution of business logic
Execution of code that outputs processing results as HTML documents (also called "Web page" for processing result output)
Execution of termination code that terminates the Web application
When the processing of the Web application terminated, the process also terminates.