<? include("connect.php"); ?>
<html>
<head>
<title>Add New Menu Item </title>
<body background="../../images/fibermat.gif">
<center>
<table cellpadding=0 cellspacing=4 width=590>
<tr>
<td style="padding:3px;" colspan=2 background="../../images/g11line21.gif"><font face="Arial, Helvetica, sans-serif" ><b>Add New Menu Item </b></font></td>
</tr><tr valign="top"><td colspan=2>
<font >&nbsp;</font>
</td>
</tr>
</table>

<form method="POST" name="regform" action="menu_post.php">
    
<table border=0 cellpadding=3 cellspacing=4 width="590">

         
<tr><td ><font face="Arial, Helvetica, sans-serif" ><b>Menu  Name</b></font></td><td>           
<input  type="text"  size="35" name="name" value =""></td></tr>

<tr><td ><font face="Arial, Helvetica, sans-serif" ><b>Link</b></font></td><td>           
<input  type="text"   size="35" name="link" value=""></td></tr>     

  <tr> 
    <td > <font face="Arial, Helvetica, sans-serif"><b>Parent</b></font> </font></td>
    <td colspan=2> <font face="Arial, Helvetica, sans-serif"> 
      <select name="parent">
        <?php $query=  "select id,label from menus  order by label, id";
      $query=stripslashes($query);
      $result=mysqli_query($conn,$query) or  die( mysqli_error() );
      while ( $row= mysqli_fetch_row($result))
      {         
          echo "<option value=$row[0]>";
	  echo $row[1];
	  echo "\n";
      }
?>
      </select>
      </font></td>
  </tr> 
 
<table cellpading=0 cellspacing=10 width= 50>
<tr> <blockquote> 
<td>
 <input type =submit name=submit value = "Submit"></td><td><input type="reset" name="reset" value="Clear"></td></blockquote>
</tr></tr></table>

</table>
</form>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
                                                                             
</body>
</html>
                                    
