|
|
1. Design an application in which users type in information to a "database" from the web. Example of this kind of web application include adding comments to a travelogue, adding their name and other information to a directory, or posting items for sale. 2. Write an HTML form to collect the information and write a CGI script that appends records of information to a UNIX file. The records should be formatted with a multi-line format with record tags to show the beginning and end of each record and a field name, followed by a colon, at the beginning of each field value. &le record > Then use your script to collect some data (from yourself or your friends). 3. Write another form that uses the data in the file from problem 2 above. Then write a CGI script for one of the two following things: 3.a have an HTML form in which a user can request to view all the records in the file and a CGI script that returns an HTML page with all the records in some format. or 3.b have an HTML form in which a user can request to see the information in one or more of the records which match a requested field value. The CGI script must search the Unix file of data to find the requested records and return them in a formatted HTML file. For example, if a user requests information on people whose name is Nancy McCracken, you would return an HTML version of the record above. |