Assignment #10 - PHP Multi-Form Application
Example Only

Objective: To gain experience using PHP for multi-form applications.

Modify the Tuna Cafe example to ask the user what he/she liked about Tuna Cafe.

  1. The first script, tunacafe.php, will remain unchanged other than the style sheet that you will add.
  2. Modify the tunaresults.php file so that it:
    1. Uses a style sheet that you define.
    2. Contains an array has information that will be used for checkbox items. This array might contain elements such as:
      • The marvelous food preparation
      • The affordable prices
      • The speedy service
      • Just like tuna
      • None of the above
    3. Contains a form with checkboxes that use the responses above. The user should be able to select zero, one or multiple checkboxes. The form, when submitted, should send the results to another page called tunaresults2.php.
  3. Tunaresults2.php (which will also use the style sheet) will accept the responses from the form above, and output the results in table format. The OutputTableRow function from the lecture notes should be used to generate the table rows.

In summary:

  1. The user will Browse to tunacafe.php, indicate his/her favorite dishes, and then click the Click to Submit button.
  2. Tunaresults.php will be displayed. This page will display the results of the selections in tunacafe.php, as well as a form asking the user to choose the things he/she likes about Tuna Cafe.
  3. The user will make some selections and click a Submit button. Tunaresults2.php will display the results of the selections in table format.