Page 1 of 1

arguments in a web form

Posted: Wed Aug 09, 2006 6:21 pm
by asdf0987
Does anybody have a simple .php script that I can put on a webserver and then POST or
GET to it such that the form will automatically print all of the form elements and corresponding
values?

Thank you.

Posted: Wed Aug 09, 2006 6:34 pm
by RobertGonzalez

Code: Select all

<?php
foreach ($_POST as $key => $value)
{
    echo '<p>The POST var $_POST[' . $key . '] has a value of => ' . $value . '.</p>';
}
?>