<?php
  /* Program: NewCat_form.inc
   * Desc:    Displays a form to collect a category name
   *          and description.
   */
?>
<h4>Either the category name or the category description 
    was left blank. You must enter both.</h4>
<form action="ChoosePetName.php" method="POST">
 <table>
  <tr>
   <td style="text-align: right">Category name:</td>
   <td><input type="text" name="newCat" 
              value="<?php echo $_POST['newCat'] ?>" 
             size="20" maxlength="20">
   </td></tr>
  <tr>
   <td style="text-align: right">
       Category description:</td>
   <td><input type="text" name="newDesc" 
              value="<?php echo $_POST['newDesc'] ?>" 
              size="70%" maxlength="255">
   </td></tr>
 </table>
 <input type="hidden" name="category" value="new">
 <p><input type="submit" name="newbutton" 
           value="Enter new category">
 <input type="submit" name="newbutton" 
        value="Return to category page">
</form>
