all variables passed from a form are saved into environment variables. if you use the post method all the variables will be here:
$HTTP_POST_VARS
if you use the get method, all variables will be posted here:
$HTTP_GET_VARS
you can then put them through a loop and extract out the key variable pair to figure out what you have been sent.
http://www.php.net/foreach