<html> <head> <title></title> </head> <body> <?php echo "Method: ".$_SERVER['REQUEST_METHOD']."<br>"; $name = "_".$_SERVER['REQUEST_METHOD']; foreach($$name as $key=>$val) { echo "$key => $val<br>"; } ?> </body> </html>