I posted how to do this in ASP, but since I needed something similar in PHP for that last post, I thought I'd post the PHP version as well.
This script snippet will play back everything that was just submitted in the form (code found in the each function page in the PHP manual.)
<?
echo "<p>Here is the data that was submitted in the form</p>";
echo "<p>";
while(list($key,$value) = each($_POST)) {
echo $key.": ".$value;
echo "<br>";
}
echo "</p>";
?>
This assumes, in your form tag, you set method="post"