- plan your questionnaire
- look at the questions and determine which type of input they best
fit
- load the page generate.html
- pick how many of each type of question you would like
- submit and it generates the next page based on your input
- There are 3 steps to the form generator so just continue until your
questionnaire is displayed
- DON'T ANSWER THE FORM
- save the final form as a html file to your hard
drive
make sure that you save the Source and name it whatever you want
with a .html extension. View the source before you leave the page in Netscape.
I've seen one machine that did not save the file correctly. This was not
a problem with the program but with that particular computer.
- right click on cgi-lib.pl.txt and save
it to your hard drive
- right click on generate4.pl.txt and
save it to your hard drive
- rename those two files by removing the .txt
- log onto sunburst (telnet) and create a new directory for your questionnaire
This directory MUST be inside of your www directory (where your web pages
are) so get into the directory where you want your new directory and type
mkdir directory-name -- this is the unix command for make directory
- chmod 755 new-dir (whatever you just named it)
- ftp (file transfer protocol - Fetch on the mac or WS_FTP on windows)
those 3 files using an ftp program
- yournewfile.html file
- cgi-lib.pl
- generate4.pl
to your newly created directory
- now back to the telnet program change into your newly created directory cd
new-directory
- still in telnet and type
chmod 755 *.*
- then type touch gen.log --- this creates a file with you as
the owner. The information will be logged to this file.
- then type chmod 702 gen.log -- this sets the permissions to allow
the file to be written from Netscape.
- right now if you do a dir you should see something like this.
sunburst% dir
total 9
-rwxr-xr-x 1 trio 3646 Jun 1 22:48 cgi-lib.pl
-rwxr-xr-x 1 trio 2504 Jun 1 22:48 index.html
-rwx----w- 1 trio 239 Jun 3 10:42 gen.log
-rwxr-xr-x 1 trio 1017 Jun 1 22:50 generate4.pl
MAKE SURE that the rwxr-xr-x stuff looks identical to this
- give it a test run
if you wish to use a different name for the log file
use pico from a telnet session and at the sunburst% prompt
change into the proper directory and type pico generate4.pl
look for open (LOG, ">>gen.log"); toward the bottom
change the gen.log to any file name you choose
if you wish to change the grading program name (currently
generate4.pl)
go to a telnet session and at the sunburst% prompt
change into the proper directory and type NameOfYourForm.html
look for "generate4.pl" and change it to whatever you've chosen
if you want to leave the files the same and don't want people to be able
to see the directory list just do a touch index.html from the
sunburst% prompt - make sure you're in the proper directory.
leave the cgi-lib.pl alone - it could be renamed but it's only called from
the other programs.
2910