You are not logged in.

Login
Username:
Password:


Introduction to UNIX

Poll Project ; 100 points

Write a poll that asks the user(s) a question and processes/displays the results.
Examples of such polls can be found at: js polls

(i) Write and xhtml 1.0 Strict form that asks the user (hopefully an interesting) question.
     You may want to make use of text, radio, and/or select fields.

(ii) Make text files to store your results (a mini database), i.e. vi q1 and vi q2.

(iii) chmod the q1 and q2 files so that everyone can read and write to them since the script will be run as
     a web user not as you. (something like -rw-rw-rw, look in your notes).

(iv) Write either a Perl or a PHP script to process the form.
     the script will have to open the files for reading and writing
     on seperate ocasions so in Perl you will have to use the open and close commands.
     In PHP we will have to use the fwrite and fgets functions.

Last modified Saturday, 08th December, 2007 @ 11:56pm