Listing Book Information


These few slides show how to list book information in the file books.txt. The following interface is displayed after the button List books is selected in the main interface. This is implemented by the following command:
   system( "/bin/cat  ListBooks.html" );
where ListBooks.html is the HTML script of this interface, which can be downloaded from the Web by using the View pulldown menu.

  List Book Information.
 ISBN:

A book

All books






    Password:                    

The following HTML script is for the top part of this interface:

~wenchen/public_html/cgi-bin/351/week5/ListBooks.html
<form method="post"
  action="http://people.cs.und.edu/~wenchen/cgi-bin/351/week5/ListBooks.pl">
 <table>
  <tr><th colspan="3">List Book Information.</th></tr>
  <tr>
   <td>
    ISBN: <input type="text" name="ISBN" size="15" value="0201874016">
    <input type="radio" name="select" value="one"> A book
    <input type="radio" name="select" value="all" checked> All books
   </td>
   <td>
    <input type="submit" name="act" value="List">
    <input type="submit" name="act" value="Help">
    <input type="submit" name="act" value="Home">
    <input type="reset"             value="Reset">
   </td>
  </tr>
 </table>
</form>