Cannot save data from pop window to database
<p>I have a screen from which a user can click on a button that brings up a popup
window. When the user clicks on save from the pop up window, the data is to be
save. It doesn't save anything, it is as if it does not see the database. This cannot be because I'm able to call data from it and display it.</p>

<p>jQuery on user page:</p>

<pre><code>$(".up").click(function(){
    var code = '1234';
    var id = '24';
    var who = 'someone';
    $("#ui").html('loading...').show();
var url = "box.php";
    $.post(url, {code: str, g:id, u:who} ,function(data) {
        $("#ui").html(data).show();
    });
});
</code></pre>

<p>php on popup bx:</p>

<pre><code>//link db  {...........}
// grab post
$click = $_POST[code];
$id = $_POST['g'];
$u = $_POST['u'];

// query php {........}
</code></pre>

<p>jQuery on popup box:</p>

<pre><code>$("#process").click(function(){
    var ID = '24';
    var who = "someone";
    var pla = "place";
    $.ajax({
        type: "POST",
        url: "member.php", //contains function 
        data: 'user='+ who+ '&amp;dept='+ pla+ '&amp;sure='+ ID, 
        cache: false,
        success: function(html) {   
            //do something
        }
    });
});
</code></pre>

<p>When I hit submit it doesn't post to the database. Maybe it's not passing the data to the member.php page.</p>
