DEADLINE IN 7 HOURS
In this assignment, you will create a CGI script that will search through a file of California Certificated wrestling coaches. The file, which you must use exactly as it is, is named coachlist.txt.
The program will use the form attached below to search through a file of California Certificated coaches.
1) Complete and fully-functional working program.
Program Requirements and Hints
If all the checkboxes are empty, you must return an error telling the client to select at least one checkbox.
If the first name, last name, or city name is left empty, that is presumed to be the same as ?all values?. For example, if you enter Joe in the first name field, it will find all people in all cities whose first name contains the word Joe.
The last name, first name, and city searches are case-insensitive, and will match if they are found anywhere in the string. Thus, searching for Ger in the first name field will match Gerald, Geraldine, and Roger.
The results of the checkboxes are ?or?ed together. In mathematical notation, you are doing a search for:
Last name AND First name AND City AND ( copper OR silver OR bronze )Note: that is the mathematical notation; your code will probably not do the test in one line! At least, not if you want to be able to debug it easily, it won?t.
Your results must be returned in the form of a table, appropriately titled. The entries must be sorted by last name, which makes your programming a lot easier, since that?s how the original file is sorted. You must also say how many matching records were found. You may show just a set of table headings if there are no matching entries. (It's ugly to do this, but making it work nicely doesn?t involve anything special about CGI, so I'll let you do it.)
Windows or Linux