You should have 4 files:

     readme.txt  (this file)
     form.html   (web page with a form)
     myimage.gif (image used by the form)
     handler.cgi (program to process form information)

If you do not have all of those files, pick up another 
copy of the package at 
http://willmaster.com/master/cgi-bin/arts/pl.pl?formtut 



STEP 1: Prepare and install handler.cgi

If you do any editing of handler.cgi, do so with an ASCII/plain text word 
processor. (If you're uncertain about what qualifies as an ASCII/plain text 
word processor, the FAQ at http://MasterCGI.com/faq/ has information.)

(1) Ensure the first line of handler.cgi points toward your Perl 5+ program.

(2) Upload handler.cgi into a directory that can run CGI scripts.

(3) On the server, set the handler.cgi file's execution permission. 

    If you're setting execution permission with your FTP program, the settings are:

           owner -- read/write/execute
           group -- read/execute
           world -- read/execute
           (some FTP programs use "other" instead of "world")

    If you're setting execution permission with Telnet, type:

           chmod 0755 handler.cgi



STEP 2: Modify the form's <form> tag.

The <form> tag's action="..." attribute needs to contain the URL of 
handler.cgi that you just installed.



STEP 3: Upload form.html and myimage.gif

Upload form.html and myimage.gif into a public directory. (A public 
directory is one that contains web pages that browsers can access.)



STEP 4: Play :)

Type the URL of your form.html into your browser. Play with the form.



A NOTE:

The name of the file upload field must be "upfile" because that is the only 
file upload field name that handle.cgi looks for. The rest of the fields can 
have whatever names you give them. You may add more form fields, any except 
more file upload fields.

