Having difficulty getting value to post from dynamic dropdown <p>G'day, I'm having a problem getting the right value to post on a form I've made. It is passing the ID but not the name. Here's my code:</p> <pre><code>&lt;td name="tech_userlogin" id="tech_userlogin" align="right" valign="top"&gt;&lt;select name="tech_userlogin" id="tech_userlogin" class="db_field_name"&gt; &lt;?php $sql="SELECT techID, tech_userlogin FROM technicians"; $result=mysql_query($sql); $options=""; while ($row=mysql_fetch_array($result)) { $techID=$row["techID"]; $tech_userlogin=$row["tech_userlogin"]; $options.="&lt;OPTION VALUE=\"$techID\"&gt;$tech_userlogin&lt;/option&gt;"; } ?&gt; &lt;OPTION VALUE=""&gt;---Select--- &lt;?php echo $options; ?&gt; &lt;/SELECT&gt; </code></pre> <p>The form posts to this page:</p> <pre><code>&lt;?php include 'sql_connect_R.inc.php'; $id = mysql_real_escape_string($_POST['jobID']); $equip = mysql_real_escape_string($_POST['wo_equip']); $techID = mysql_real_escape_string($_POST['techID']); $tech_login = mysql_real_escape_string($_POST['tech_userlogin']); mysql_query("UPDATE work_orders SET wo_equip = UCASE('$equip'), wo_techID = '$techID', tech_userlogin = '$tech_login' WHERE jobID = '$id'"); mysql_close($con); </code></pre> <p>I'm very new to PHP/MySQL and it took me a couple of days to get something that would put the tech_userlogin into a dropdown box. That is working, but when it posts the techID comes through on both $techID and $tech_userlogin. Could someone please help me sort this out? Any help would be greatly appreciated. Cheers, Spud</p>