回声下拉选择

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:

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


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

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

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

the name of that select box is 'status' followed by $rrows['id'], whereas you are simply referring to it as 'status'

try: var_dump($rrows) instead of echo on the first line to see what is actually there. I use it often to debug.