title: Login by dropdown menu
body: <p>So for a project I'm working on, it is necessary to login by simply filling out an option on a dropdown menu and then clicking submit (no password field).</p>
  
  <p>Any search I do on the topic returns info about making those neat dropdown menus akin to that of twitter. And when I attempted this myself a great abomination of a server error occurred.</p>
  
  <pre><code>&lt;?php
  
  mysql_connect("localhost", "root", "mypassword")or die("cannot connect"); 
  mysql_select_db("lunch_punch")or die("cannot select DB");
  
  $myname=$_POST['myname'];
  
  
  session_register("myname");
  header("location:login_success.php");
  }
  else {
  echo "Wrong Username or Password";
  }
  
  &lt;?php
  session_start();
  if(!session_is_registered(myname)){
  header("location:home.html");
  }
  ?&gt;
  
  &lt;html&gt;
  &lt;body&gt;
  Login Successful
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>