How to get the data; (ex. id:1) with the jQuery.get?

How to get the data; (ex. id:1) with the jQuery.get?

Sitting here and trying to learn jQuery, that seems to be one great framwork! :)

Anyhow, doing a simple .get like this;

  1. <p class="data">
  2.    Get data
  3.   
  4.    </p>
  5.   
  6. <script>
  7.   
  8.    $("p.data").click(function () {
  9.   
  10.    $.get("test.php", { id: "1" },
  11.    
  12.     function(data){
  13.    
  14. $("#view").html(data);
  15.   });
  16.    });
  17.   
  18.    </script>
  19. <div id="view"></div>
...And now, inte the file test.php I want to fetch the value (1 in this case) to the file test.php...
How do I get it, simply? ;) I want to get the value as a php-variabel, like; <?php $id = id(1); ?>

Tnx for all the help..!