Assignment-1

 

 

 

Foreword

Resources

Code Listings

Foil Sets

Assignments

Solutions

External Resources

SiteMap

Search

Home

 

Up ] Assignment-0 ] [ Assignment-1 ] Assigment-2 ] Assigment-3 ] Assignment-3a ] Assignment-3b ]

In this and the next assignment, we will write CGI scripts that process the input form created in Assignment #2.

  1. Write a Perl script that writes the input data to a file when (one of) the submit buttons is pressed, this is the "Add" button in our example.
  2. You may use the example script register.pl as a model. As a matter of fact, you may make a copy of this program, install it in your Web directory, and modify it to suit your needs. If you use this example script, the main requirement is that you must use a different file format. You can even use the simplest format with one input record per line.

    You may use either the "ReadParse" subroutine or the CGI.pm libraries in your program.