Echo Drop down selection
<p>I have an edit section to edit a status and other various information.
I want the Status to be a drop down and then echo back. When using the code it just echos undefined. The text boxes (which I haven't included) work fine so I presume it is just because its a drop down instead of text boxes. The echo is in the first line of the code:</p>

<pre><code>&lt;?php echo $rrows['status']; ?&gt;
&lt;a href="javascript:void(0);" onclick='$("#edit&lt;?php echo $rrows['id'];?
&gt;").show("slow");'&gt;Edit&lt;/a&gt;


&lt;div style="display:none;font: normal 11px arial; padding:10px; background: #e6f3f9" 
id="edit&lt;?php echo $rrows['id']; ?&gt;"&gt;
Application Status: &lt;select id="status&lt;?php echo $rrows['id']; ?&gt;" name="status&lt;?php 
echo $rrows['id']; ?&gt;" value="&lt;?php echo $rrows['status']; ?&gt;" &gt;
&lt;option value="&lt;?php echo $rrows['status'];?&gt;"&gt;&lt;/option&gt;
&lt;option value="Successful"&gt;Successful&lt;/option&gt;
&lt;option value="Not Successful"&gt;Not Successful&lt;/option&gt;
&lt;option value="Pending"&gt;Pending&lt;/option&gt;
&lt;/select&gt;
&lt;input name="doSave" type="button" id="doSave" value="Save"

onclick='$.get("do.php",{ cmd: "edit", status:$("input#status&lt;?php echo
$rrows['id']; ?&gt;").val() ,user_level:$("input#user_level&lt;?php echo $rrows['id']; ? 
&gt;").val(),user_email:$("input#user_email&lt;?php echo $rrows['id']; ?&gt;").val(),user_name: 
$("input#user_name&lt;?php echo $rrows['id']; ?&gt;").val(),id: $("input#id&lt;?php echo 
$rrows['id']; ?&gt;").val() } ,function(data){ $("#msg&lt;?php echo $rrows['id']; ?
&gt;").html(data); });'&gt;
 &lt;a  onclick='$("#edit&lt;?php echo $rrows['id'];?&gt;").hide();'  
href="javascript:void(0);"&gt;close&lt;/a&gt;

&lt;div style="color:blue" id="msg&lt;?php echo $rrows['id']; ?&gt;" name="msg&lt;?
php echo $rrows['id']; ?&gt;"&gt;&lt;/div&gt;
</code></pre>
