<html>
<head><title>File Upload To Database</title></head>

<body>
<h3>Please Choose a File and click Submit</h3>

  <form enctype="multipart/form-data" action="image.php" method="POST">

  <input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
  Name : <input type="text" name="name" size="100" length="100" value="">

  <input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
   File: <input name="userfile" type="file" size="100"/>

  <input type="submit" value="Upload" />
</form>

</body>
</html>