title: How to get two values from select tag
body: <p>I've been running some code where it returns the id and now I need the id and name returned. I feel like this should be extremely easy but I've having a difficult time doing it. I tried to explode the values and still cannot get the $name to work.</p>
  
  <p>Code:</p>
  
  <pre><code> &lt;select name="id" required="true" value="&lt;?php echo $row['name']; ?&gt;"&gt;
     &lt;?php                         
       $row="SELECT id, name FROM modules";
       while ($row = $stmt-&gt;fetch()){
       echo "&lt;option value=\"" . $row['id'] . "\"&gt;" . $row['name'] . "&lt;/option&gt;";
       }
  
         list($id,$name) = explode(".",$_GET['id']);
         echo $name;
     ?&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>I'd like to be able to get the id and the name both from the drop down menu if possible to POST.</p>