Passing URL Parameter VIA popup

Passing URL Parameter VIA popup

Hello. I have a page (test.php) with a  jquery button which opens a dialogue popup box and submits to another page (tast2.php).

 For the life of me I cannot retrieve the data in test2.php. I siply want to view the sent data in a form.

Can anyone please show me the error of my ways?!


test.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.20/themes/vader/jquery-ui.css">
<style type="text/css">
#box_form > *{
    font-size:12px;
    margin-bottom:15px;
}
#box_form > p > label{
    display:block;
    font-size:18px;
}
#box_form > p > input, #box_form > p > textarea{
        width:300px;
}
</style>
<script type='text/javascript'>
$(document).ready(function() {
    $('#box_form').dialog({
        autoOpen: false,
        height: 375,
        width: 350,
        modal: true,
        buttons: [
            {
            text: "Cancel",
            click: function() {
                $(this).dialog("close");
            }},
        {
            text: "Submit",
            click: function() {
                $('#zFormer').submit();
            }}
        ]
    });
    $('#clicky').button().click(function(e){
        $('#box_form').dialog('open');
    });
});
</script>
</head>
<body>
<form id="zFormer" method="POST" action="test2.php" name="former">
<div id="box_form">
    <p>
        <label for="z_name">Your Name:</label>
        <input type="text" value="John Smith" name="z_name">
    </p>
    <p>
        <label for="z_requestor">Your Email Address: </label>
        <input type="text" value="john@email.com" name="z_requester">
    </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
</div>
</form>
<input type="button" id="clicky" value="Show Form">
</body>
</html>






























































test2.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>





<body>
<?php echo $_GET['z_name'] ?>


<?php $name = $_POST['z_name']; ?>

<?php echo $name ?>

</body>
</html>


Many thanks in advance. Jamie.