In this final assignment, you are all going to create web pages to help
you all study for the Final Exam (which is cumulative). I have divided
the class up as follows:
-
Create a frameset file, with an index on the left. You will learn how to
do this in the labs.
-
Your first content frame should be a study outline. Use lists and tables
as appropriate for clarity.
-
Your second content file for the main frame should be a quiz with at least
6 questions. Copy this
HTML file, edit it in Dreamweaver to add your own questions and answer
choices, add your own fonts and styles as you like, and create a link in
your frame index to it with the target as the main frame.
-
You will need to create another frame that will score the exam and highlight
wrong answers, after the visitor submits the quiz. Here is PHP
code that will help you do that. To make it work, you need to insert
it into an HTML document and name the document with a PHP extension. Like
you did in assignment 4 with the info page,
-
create a web page to announce the quiz results;
-
edit the PHP code in Notepad or another text editor to fill in explanations
for incorrect answers;
-
at an appropriate place in the HTML document, insert the PHP
code I have given you (use cut and paste); and
-
save the HTML document as grade.php (important: use this filename).
-
Finally, put the following files to your public_html directory: feedback.html,
guestbook.html,
addguest.txt
(you need to rename this addguest.php), 1st.gif,
2st.gif,
3st.gif,
4st.gif,
and 5st.gif.
feedback.html
will be your third content file for the main frame. Note that you need
to make sure the permissions on the files are
chmod a+rx *
and the permission on guestbook.html
should be as follows:
chmod a+rwx guestbook.html
You may also find it useful to download old_guestbook.html.
If you ever want to delete your guestbook entries and start with a blank
guestbook, then copy old_guestbook.html
over guestbook.html
and remember to reset the permissions as follows:
mv old_guestbook.html guestbook.html
chmod a+rwx guestbook.html
NOTE: You should not set the other files in your directory to rwx (read,
write, and execute) permission, only guestbook.html.
-
You may work with other people in the class (only persons in this class
section!) to compile questions. If you work with others, you should not
end up using the same questions on all of your quizzes.
-
You are to do all web-page authoring, including editing the PHP files,
by yourself, with no outside assistance (excepting Prof. Crampton).
-
Make sure you test all of the web pages:
the frames should work, any included images or other items should appear
properly, and the quiz and feedback form should work properly. Be sure
to test it from someone else's account, so that you can be sure that it
will work for the graders.