Re: array of form data
- From: "Ken Robinson" <kenrbnsn@xxxxxxxxx>
- Date: 31 Aug 2005 06:42:22 -0700
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
.
- Follow-Ups:
- Re: array of form data
- From: Mark
- Re: array of form data
- References:
- array of form data
- From: Mark
- array of form data
- Prev by Date: Re: How to get an unix programmer started on web programming?
- Next by Date: Re: How to get an unix programmer started on web programming?
- Previous by thread: array of form data
- Next by thread: Re: array of form data
- Index(es):