title: How to pass html select option value through url in php
body: <p>I'm trying to pass select option value through url.selection value come from mysql table.i want to pass that driver name to another page.</p>
  
  <pre><code> &lt;?php
  //another select query goes here.
  
  $query1= "SELECT  * FROM driver WHERE status='Available'" ;
  echo '&lt;td&gt;'.'&lt;select name="driver"&gt;';
                          $result1= mysql_query($query1);
                          while($row1 = mysql_fetch_assoc($result1))
                                      {   
                                      echo '&lt;option value="'.$row1["name"].'"&gt;'.$row1["name"].'&lt;/option&gt;';    
                                      }
                                      echo '&lt;/select&gt;'.'&lt;/td&gt;';
  echo'&lt;a rel="facebox" href=db_confirm_booking.php?id='.$row["id"].'&amp;driver='.$_POST['driver'].'&gt;' . 'Confirm' . '&lt;/a&gt;';
  
  ?&gt;
  </code></pre>