<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>