Displays all the POST variables:

foreach ($_POST as $key => $value) {
	echo "$key = $value";
}

Displays all the GET variables:
foreach ($_POST as $key => $value) {
echo “$key = $value
“;
}

Displays all the GET and POST variables:

foreach ($_REQUEST as $key => $value) {
	echo "$key = $value";
}
Did you enjoy this tutorial? Be sure to subscribe to the our RSS feed not to miss our new tutorials!
... or make it popular on