Re: Problem retrieving $_POST values
| From: | chris smith | Date: | Tue, 13 Nov 2007 13:01:25 +0000 |
| Subject: | Re: Problem retrieving $_POST values | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264430@lists.php.net to get a copy of this message | ||
On Nov 13, 2007 7:10 PM, Jon Westcot <jon@westcot.net> wrote:
> Hi Chris:
>
> > Exactly as you have there.
> >
> > print_r($_POST);
> >
> > will show you everything.
>
> Here's a section of what comes back when I do this:
>
> [mls] => 1234567
> [property_address] => Main St
> [city_arr] => Array
> (
> [0] => CHNDHT
> [1] => CHNDLR
> [2] => GILBER
> [3] => HIGLEY
> [4] => MESA
> [5] => TEMPE
> )
So it is there :)
print_r($_POST['city_arr']);
> > How are you creating the field in your form?
>
> The three fields mentioned above on the form are specified thus:
<snip>
all looks good.
> > > Is there some (free <g>) way to test a php script outside of a web page?
> >
> > cmd line you can do:
> >
> > php -l /path/to/file.php
>
> Is this something I can access through SSH? And will it show me errors as the script
> executes?
Oops, I thought you meant for parse errors. That won't tell you about
anything else unfortunately.
--
Postgresql & php tutorials
http://www.designmagick.com/