Try this code, it will give you a list of each input name and value that you submit to it:
<?
foreach($_REQUEST as $inputname => $inputval){
echo "$inputname = $inputval <br>\n";
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="" method="post" name="test" target="_self">
<p>text:
<input name="text1" type="text">
</p>
<p>Check:</p>
<p>
<input type="checkbox" name="checkbox" value="1"> 1<br>
<input type="checkbox" name="checkbox2" value="2">2 <br>
<input type="checkbox" name="checkbox3" value="3">3 </p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
<p> </p></body>
</html>