How do I put id number from select tag to a php link?
<p><img src="http://i.stack.imgur.com/K4LAx.png" alt="enter image description here"><img src="http://i.stack.imgur.com/Jx11e.png" alt="enter image description here">Currently, this is what I have so far, but it's not working:</p>

<pre><code>&lt;form&gt;
&lt;select name="patientID" id="patientSelect"&gt;
&lt;?php
$qPatient = mysql_query("SELECT idpatients, firstName, mi, lastName, suffix FROM patients ORDER BY lastName ASC");  

while($rowPatient = mysql_fetch_array( $qPatient )) {
if(isset($rowPatient['suffix']) &amp;&amp; !empty($rowPatient['suffix'])){$suffix = " " . $rowPatient['suffix'];}else{$suffix = NULL;}
            if(isset($rowPatient['mi']) &amp;&amp; !empty($rowPatient['mi'])){$mi = " " . $rowPatient['mi'] . ".";}else{$mi = NULL;}
            echo "&lt;option value=" . $rowPatient['idpatients'] . $rowPatient . "&gt;" . $rowPatient['lastName'] . $suffix . ", " . $rowPatient['firstName'] . $mi . "&lt;/option&gt;";
        }
    ?&gt;
&lt;/select&gt;
&lt;a id="updatelink" href=""&gt;....&lt;/a&gt;
&lt;a id="deletelink" href=""&gt;....&lt;/a&gt;
&lt;script  type="text/javascript"&gt;
$(document).ready(function(){
  $("#patientSelect").change(function(){
    $("#updatelink").attr('href',"update.php?id="+$("#patientSelect").val());
    $("#deletelink").attr('href',"delete.php?id="+$("#patientSelect").val());
  });
});
&lt;/script&gt;
&lt;/form&gt;
</code></pre>
