[resolved]confused about POST

[resolved]confused about POST

Hi,
I'm fiddling with the JQuery Ajax functions. I'm trying to send POST data to a php file, which then simply echos it back. I was just trying to get the basics of Ajax Post transmission down. However, it's not working. Something is wrong with my JQuery Ajax $.post(); or the way I have the PHP set up is incorrect/impossible. I was thinking that the PHP would fire every time it received post, but this may not be the case. Here is the code from two files. I appreciate any help. Thanks.

HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="../jquery/jquery.js"></script>
<script type="text/javascript">
function writeBack(inputString){
$.post("php/test.php", inputString);
alert(inputString);
};
</script>
</head>

<body>
<form>
<input id="myForm" onkeyup="writeBack(this.value);"  type="text"/>
</form>
<?php include('php/test.php'); ?>
</body>
</html>


PHP
<?php
if(isset($_POST['queryString'])){
$queryString = $_POST['queryString'];
echo $queryString;
echo 'post revceived';
}
?>


[/b][/code]