2.The server sets up the proper operating environment and calls the CGI program.
-- The environment allows the exchange of data between the server and the CGI program.
-- The server may have to send the input data from the client (user) to the CGI program to process there.
3.The CGI program executes, using the input data, and returns any output back to the server.
The server in turn passes the output (information) to the client (user).