Ok, now this little piece of goodness took me a while to find again. With AJAX development, i sometimes just want to see what the server request looks like in PHP. You can either echo this to the web page or log it somewhere and then take a look at what was sent to the server in an http request. It provides both the POST and GET variables because it uses the new REQUEST object (not that new, but added in php 4.1.0).

<?php

$keys = array_keys($_REQUEST); // store all variable names into an indexed array
for ($i =0; $i <count($keys); $i++)
{
      echo $keys[$i] . "=" . $_REQUEST[$keys[$i]] . "<br>n"; //Output data in the format <var_name>=<var_value>
}

?>