array of form data

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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?


Re: array of form data

Mark wrote:
Quoted text here. Click to load it

If your form method is "get", do

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

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


Re: array of form data

Quoted text here. Click to load it

Ah!!  I *knew* it was something simple!  You rock!

Site Timeline