arguments in a web form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
asdf0987
Forum Newbie
Posts: 1
Joined: Wed Aug 09, 2006 6:17 pm

arguments in a web form

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Code: Select all

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