Define the following terms:
Explain the difference between the get request type and the post request type. When is it ideal to use the post request type?
Write a CGI script that prints the squares of the integers from 1 to 10 on separate lines.
Write a CGI script that receives as input three numbers from the client and displays a statement indicating whether the three numbers could represent an equilateral triangle (all three sides are the same length), an isosceles triangle (two sides are the same length) or a right triangle (the square of one side is equal to the sum of the squares of the other two sides).
Write a soothsayer script that allows the user to submit a question. When the question is submitted, the script should choose a random response from a list of answers (such as "It could be", "Probably not", "Definitely", "Not looking too good" and "Yes") and display the answer to the client.
Modify the program of Figs. 19.1319.14 to incorporate the opening XHTML form and the processing of the data into a single CGI script (i.e., combine the XHTML of Fig. 19.13 into the CGI script of Fig. 19.14). When the CGI script is requested initially, the form should be displayed. When the form is submitted, the CGI script should display the result.
Modify the viewcart.cgi script (Fig. 19.23) to enable users to remove some items from the shopping cart.