COP3832, Fall 1999, Assignment 6
Due Tuesday, November 30 at the start of class
Do not use JavaScript in this assignment
Create links on your main server's home page to these links.
Create a script that will display a sticky form that will remember the user's
choices across different browser sessions using cookies. Redo script 1 from
assignment 5 using cookies. Do not use any hidden fields, use cookies. Do
not use the query string to make the form sticky, use cookies. Only create
one cookie that contains all the user's selections. Have the cookie expire
after 2 hours.
Create a script that requires a user to log in. Use the social security number
as the user name.
-
Display a first page that requires the user to enter a social security number.
The social security number must be entered in the format as explained in
assignment 5, script 2. If it is not in the correct format, indicate there
was an error and ask for the social security number again.
-
Create a database on the server that uses the social security number as the
index.
-
There will be a confirmation page as in assignment 5 that displays the user's
data from the file, and allows the user to Confirm that the data is correct,
or allows the user to click an Edit button.
-
There will be a form page that displays the data from the file in a form
that the user can edit. It will be the same form as in assignment 5 script
2, without the social security number. All fields must be validated as in
assignment 5.
-
If the social security number is not in the data base, then display the blank
form as in assignment 5, without the social security number. The data must
be validated as in assignment 5. If all the data is valid, then display the
confirmation page.
-
If the social security number is in the database, then display the confirmation
page as in assignment 5, but with the user's data from the file.
-
If the user clicks the Confirm button, then write the new data to the file.
The new data will overwrite the old data for this user.
-
The data for many different users can be stored in the file. After the new
data has been entered in the form, display a page with two links:
-
A link to the first page where a social security number is entered
-
A link to a script that will display the contents of the file, formatted
nicely.
Create a script that will display the contents of a file
-
Be sure the file has 600 permission
-
Place the script in ~/public_html/cgi-bin. Create these directories
if you don't have them. Give them 755 permissions.
-
Create a link to this script from
http://mongoose.aul.fiu.edu/cgi-bin/cgiwrap/~dlette07/script.cgi
replacing dlette07 with your user name, and script.cgi with
the name of your script.
-
Create a link to this script from
http://mongoose.aul.fiu.edu/~dlette07/cgi-bin/script.cgi
replacing dlette07 with your user name, and script.cgi with
the name of your script.