<?php
if(IsSet($_POST['Name']))
$Name = $_POST['Name'];
if(IsSet($_POST['Address']))
$Address = $_POST['Address'];
if(IsSet($_POST['Spices']))
$Spices = $_POST['Spices'];
if(IsSet($_POST['Pay_when']))
$Pay_when = $_POST['Pay_when'];
if(IsSet($_POST['Pay_mode']))
$Pay_mode = $_POST['Pay_mode'];
if(IsSet($_POST['Outlets']))
$Outlets = $_POST['Outlets'];
?>
<html>
<head>
<title>Show what was entered.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p>The first section accesses the information from the posted variables by name.</p>
<p><?php PRINT("Name = $Name"); ?><br>
<?php PRINT("Address = $Address"); ?><br>
<?php PRINT("Spices = $Spices<br>");
if(is_array($Spices))
{
while(list($subkey,$subvalue) = each($Spices))
{
print("Spices [$subkey] = $subvalue <br>\n");
}
}
?>
<?php PRINT("Pay_when = $Pay_when"); ?><br>
<?php PRINT("Pay_mode = $Pay_mode"); ?><br>
<?php PRINT("Outlets = $Outlets<br>");
if(is_array($Outlets))
{
while(list($subkey,$subvalue) = each($Outlets))
{
print("Outlets [$subkey] = $subvalue <br>\n");
}
}
?>
</p>
<p>The second section accesses the information from the $HTTP_POST_VARS array.</p>
<p>
<?php
while(list($key, $post_var) = each($HTTP_POST_VARS))
{
if(is_array($post_var))
{
while(list($subkey,$subvalue) = each($post_var))
{
print("$key [$subkey] = $subvalue <br>\n");
}
} else
{
print("$key = $post_var <br>\n");
}
}
?>
</p>
</body>
</html>