title: Passing a password to next php page
body: <p>Wondering if i could get some quick help!
  creating a simple website and for administrator purposes i need to be able to access a page where i can upload and delete stuff from phpmyadmin database.
  The thing im having trouble with is being able to send the password from the html page where it's input, to the next page where it's checked. So idealy i will start on "admin.html" which has a text box for the password. Then next page is "adminmenu.php." and adminmenu.php can only be accessed if the password matches the user of the database. (keep in mind the password is not stored in a table like alot of the other questions similar to this)</p>
  
  <p>this is my form on admin.html (password box)</p>
  
  <pre><code>&lt;form name="input" action="adminmenu.php" onsubmit="return validateForm()" method="post"&gt;
  Password: &lt;input type="text" name="password"&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>so isnt the password sent as "password" for the next page?</p>
  
  <p>after that i just dont really know how to check it. This is like my unsure guess at it:</p>
  
  <pre><code>$handle = mysql_connect("localhost", "uMoviesRoot","password") or die ('Error:' .mysql_error())
  mysql_select_db("movies");
  </code></pre>
  
  <p>thanks for any help guys!</p>