title: Getting option name php
body: <p>I am new to PHP so bear with me. I have some code like this -</p>
  
  <pre><code>echo ('&lt;select name="fullname"&gt;');
  while($row = mysql_fetch_array($dorequest)) {
    echo ('&lt;option name="' . $row['ID'] . '"&gt;' . $row['firstname'] . " " . $row['lastname'] .  '&lt;/option&gt;'); 
  }
  echo('&lt;/select&gt;');
  </code></pre>
  
  <p>Which works fine. When I submit the form I want to get the ID of the selected option ( $row['ID'] ). I can only get the content of the select box. Any ideas how I might do this?</p>