Community Information Systems

CIS Assignment:

Four-page Web Site

Preliminary attempt (without self-assessment) due Thursday 2 December

Final submission due Monday 6 December

Objectives

...be able to use a simple text editor to create web pages using valid XHTML and CSS

...be able to save web pages to a web server and edit those pages both by logging in remotely and by using FTP

...be able to integrate PHP commands into HTML documents to produce web pages

...develop full familiarity with elements of HTML forms and ways to process forms using PHP

...understand and appropriately use general programming structures such as variables, arrays, conditionals, and loops

...appropriately use common PHP built-in functions

...become familiar with a wide variety of PHP built-in functions and be able to use reference materials to figure out how to use any specific built-in function

...compare different ways to structure databases and to store and retrieve information

...be able to invoke the MySQL interpreter and use it to create and modify database information

...integrate database content into web pages by using PHP database functions to interact with MySQL

...learn some strategies for debugging PHP scripts

Criteria

Assignment will be graded out of 50 points

Directions

In this assignment, you will be creating the structures necessary to make a 'four-page web site' in which one of the pages can only be viewed by people who have registered with your web site. You will do this by creating six files

  1. A configuration file -- This file will contain information which is used by all three of the other files. Specifically, it will take care of displaying the HTML header information for each page as well as the general logo and navigation menu for your site. It will also establish a connection to the MySQL database.
  2. A CSS file -- This file defines all the styles for your site. It will automatically be linked to each page of your site by the configuration file mentioned above.
  3. A login page -- This file will display the login form for a user and a link to the registration page for users who have not yet registered.
  4. A registration page -- This file will display the form a user can use to choose a login and password for use in accessing 'members only' areas of your site.
  5. A registration processing page -- This file will process the information from the registration form and insert it into the database.
  6. A 'members only' page -- This file will process the information from the login form and display different messages depending on whether or not the user has successfully logged in. Successfully logged in users should be shown some sort of congratulatory message while all other users should be provided with a link to the login page.

Templates for these six files are provided here as a zipped folder: 05templates.zip

If you are unable to extract the folder on your own computer, send a message to Allen. He will send you an email with the folder as an attachment. You will want to save the files to your grace web space.

It is your task to modify these templates so that they contain the necessary form elements and successfully interact with your own database table to achieve the desired functionality.

Self-assessment

Your self-assessment should include the following components:

Submission