Re: array of form data




Mark wrote:
> After submitting form data to a page called procform.php, I want to be
> able to see a list or array of all the inputs that were submitted from
> the form. I scoured the PHP books I own and did some google searches,
> but found nothing in this regard. I know I can use $myformvar in
> procform.php if I know the form had an input like this: <input
> type=hidden name=myformvar value=190> But, surely, there must be a way
> to get a list of all the variables assigned from the form in PHP, right?

If your form method is "get", do

<?php
echo '<pre>';print_r ($_GET);echo '</pre>';
?>

If it is "post", substituted $_POST for $_GET.

Ken

.