Part 1:
This will loop through all of the form elements, and get the name and value for each.
while (list($key, $val) = each($HTTP_POST_VARS)) {
echo $key." > ".$val."<BR>\n";
}
Part 2:
You could always use $HTTP_REFERER to check what page they are coming from.
Hope this helps.
Derek C.