title: How do I get selected value in dropdown PHP MySQL?
body: <p>I'm making a PHP Drop down inside a form to view data from a table in my database.
  It shows the data correct but I dont get any output in my form action file when I submit.</p>
  
  <p>It doesn't matter wich one of the outputs from the database i choose, I still get no output. It's just blank when I try to echo the output.</p>
  
  <p>So how can I get the selected option in the drop down to some sort of $blabla? </p>
  
  <p>Thanks</p>
  
  <p>Here the code:</p>
  
  <pre><code>&lt;SELECT NAME="char"&gt; 
  &lt;option value=""&gt;Choose&lt;/option&gt;
  
  
  &lt;?php
  
  $qw1 = $_SESSION['SESS_MEMBER_ID']; 
  $sql="SELECT name FROM characters WHERE account='$qw1'";
  $result=mysql_query($sql); 
  $options=""; 
  while ($row=mysql_fetch_array($result)) { 
  
  $thing=$row["name"];   
  
    echo "&lt;OPTION VALUE=$id&gt;$thing&lt;/option&gt;";
  } 
  ?&gt; 
  &lt;/SELECT&gt; 
  </code></pre>