<html>
<head>
<title>Print all PHP variables</title>
</head>
<body bgcolor=lightyellow>
<h1 align=center>Print all PHP variables</h1>
<br><br>
<?php

    print "<b>The _GET Variables</b><br>";
    foreach($_GET as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value ;
    print "<br><br><hr>";

    print "<b>The _POST Variables</b><br>";
    foreach($_POST as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _COOKIE Variables</b><br>";
    foreach($_COOKIE as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _REQUEST Variables</b><br>";
    foreach($_REQUEST as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _ENV Variables</b><br>";
    foreach($_ENV as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _SERVER Variables</b><br>";
    foreach($_SERVER as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _SESSION Variables</b><br>";
    foreach($_SESSION as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The _FILES Variables</b><br>";
    foreach($_FILES as $name => $value)
	print "<br><b>" . $name . " = </b>" . $value;
    print "<br><br><hr>";

    print "<b>The php_errormsg Variable</b><br>";
    print "<br><b> php_errormsg = </b>" . $php_errormsg;
    print "<br><br><hr>";
?>

<?php include "../include.php"; ?>		<!-- hyperlink to see the code -->
</body>
</html>