CogSci 3 Assignment - PHP - Part 1
Due WEDNESDAY, December 2nd, 2009 11:59pm
-Extra time has been granted due to Thanksgiving break! :-)

Goals

  1. Create a COGS3 Quiz using <form> ... </form> in XHTML.
  2. Publish the Quiz on the web and have students take the quiz.
  3. Using PHP, the quiz will be corrected and statistical infomation is gathered and passed to a file on the server.

Write a 10 question multiple choice quiz --- use real questions with real answers.

We'll describe how. In particular, we'll often have you enter the outline or structure (e.g., table or form) of part of the assignment, and then go back and fill in the details, like the data in the cells in a table.

Note: You will be also be graded on the content of your quiz.
You should have at least ONE question on each of the following topics:

Use the <fieldset> ... </fieldset> element with <legend> ... </legend> to visually group your form.

Fill in your <table> <tr> <td> .... </td></tr></table> with the input.

Write the ten questions and use the ordered list element to keep track of them: <ol> ... </ol> and <li> ... </li>

Now it is time to write the answers to the questions. Here is a template for Question 1.

Repeat this fomatting for each of the questions.
Be sure to change the values associated with the name="..." and value="..." attributes of the <input ... /> element.

Repeat these steps until all of the questions are complete --- formatted and with answer choices.

Add the submit and reset buttons! -- almost done with part 1 of the assignment!

Your completed quiz should look very similar to this --- but with real questions and answers!

Your saved work should be in your public_html directory
and you should be able to see it on the web.

Your filename should be: quiz-cg3xaa.html. (of course, you know the drill, make sure that you have your appropriate account number!)

If you are working at home, you will need to upload your file to your public_html directory on the icogsci1 class server (using Filezilla or Fugu. The permissions should be set so that others may read the file.

Now load the URL for your page in your web browser:

http://icogsci1.ucsd.edu/~cg3xaa/quiz-cg3xaa.html

If you get a "Forbidden" message, you have a permissions problem and should use ssh to log into the server and then use chmod o+r to fix that. You may wish to review the Unix assignment or Unix lecture notes to remind yourself how.

Once you have your quiz up on the web, you are ready to go to part 2. Note: the buttons won't work yet.


Original Šopyright 2006 November 21, 2006 Mary ET Boyle
Modified November 2007 mrw