CGI Lab - Oct 6, 2011

Lab 1 - Query Strings

Query "Toy Story 3":

Lab 2 - Form Design

Select Your Favorite Types of Music:
Pop Classical
Rock Folk
Rap Other
Select how often you purchase Music CDs:
Weekly A few CDs each year
Monthly Never purchase
Select the locations you listen to CDs:

Lab 3 - Form Submission

  1. What are the differences you find between using the GET method and the POST method for submitting the form?
    When using GET, the parameter=value pairs are displayed in the URL after pressing Submit. When using POST, parameter=value pairs are not displayed.
  2. How does the information from the form get to the server?
    It is sent in an HTTP request to the server using the URL in the action attribute in the form.
  3. What happens when it gets to the server?
    The server runs the CGI program specified in the action URL.
  4. Where does the page that your browser displays (after pressing 'Submit') come from?
    It is output by the CGI program called on the server.