Lab #2 - Form input using PHP

CS 183 - Hypermedia and the Web

The goal of this assignment is to understand how to use PHP to read and process input generated by an HTML form. For this assignment, you must use the following HTML form (with associated PHP). (Store as form.php).

The example HTML form and PHP handling code shown in class can be found here (use the browser's view source to see both):


In this lab assignment, the form has input fields for 4 distinct courses a student has taken, their units and the grades the student have received.

Your script must be able to process the values and provide a transcript report page in HTML as output. Note that you will have to modify the form action to point to the PHP script you create as your answer to this assignment. An example output of this PHP script can be found here. Your output format can be different from this example, but the transcript report output must contain the following:

Please note the following rules to be considered regarding empty fields:

For submission please email pankai [at] cse [dot] ucsc [dot] edu your php script and a URL to your copy of the form that will trigger your script.

Last modified: 4/3/2005