

4. Next create an add form. Start by creating a new file named add.php and put this in it.
 Code:
      ------------------------------------------------------------------------
       <form action="verify.php" method="post"><p>Title:<br><input 
      type="text" name="frmtitle" size="23" value="Title"><br>Avatar 
      URL :<br /> <input type="text" name="frmavatar" size="23" value="Icon 
      URL"><br />User:<br><input type="text" name="frmuser" 
      size="23" value="Username"><br> Description:<br><input 
      type="text" name="frmuser" size="23" value=""><br>Message:<br><textarea 
      name="frmmessage" cols="100" rows="25"></textarea><br><input 
      type="submit" name="Submit" value="Submit"></p></form> 
      ------------------------------------------------------------------------
    
5. Now, make a verify file to put the new information in the MySQL database. To do this, create a new file called verify.php and add this in it.
 Code:
      ------------------------------------------------------------------------
       <?php 
      // Include the config 
      include("dbconnect.php"); 
      // Set the variables from the form 
      $Title = $_POST['frmtitle']; 
      $Avatar = $_POST['frmavatar']; 
      $User = $_POST['frmuser']; 
      $Message = $_POST['frmmessage']; 
      $Description = $_POST['frmdescription']; 
      $sql = "INSERT INTO $table SET title='$Title', avatar='$Avatar', 
      user='$User', message='$Message', description='$Description'"; 
      if (mysql_query($sql)) { 
      echo("Your tutoral has been added<br /> "); 
      } else { 
      echo("Error adding entry: " . mysql_error() . ""); 
      } 
      ?> 
      <script language=javascript> 
      
      
      </script> 
      ------------------------------------------------------------------------
    
That's it, you're done! This tutorial was made from several other tutorials, but with major editing and add-ons.