Re: [PHP] Can't read $_POST array

2010-08-18 Thread Andrew Mason
t;> From: Brian Dunning [mailto:br...@briandunning.com] >> Sent: Wednesday, August 18, 2010 2:23 PM >> To: PHP-General >> Subject: Re: [PHP] Can't read $_POST array >> >> This was the complete code of the page (this is the POST >> version not the REQUEST ver

RE: [PHP] Can't read $_POST array

2010-08-18 Thread Daevid Vincent
foo bar --- - > -Original Message- > From: Brian Dunning [mailto:br...@briandunning.com] > Sent: Wednesday, August 18, 2010 2:23 PM > To: PHP-General > Subject: Re: [PHP] Can

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
This was the complete code of the page (this is the POST version not the REQUEST version): Returns an empty array no matter what POST vars are sent. We fixed it by changing it to this, which I've never even heard of, but so far is working perfectly: I have no idea what the problem was. Tha

Re: [PHP] Can't read $_POST array

2010-08-18 Thread chris h
Does $_SERVER['HTTP_METHOD'] show a GET or POST? On Wed, Aug 18, 2010 at 4:58 PM, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson >wrote: > > > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan < > a...@ashleysheridan.co.uk > > > wrote: > > > >> On Wed, 2010-08-18 at 13:

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 16:55 -0400, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan > wrote: > > > On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > > > > > I'm trying to write a VERY simple script that does nothing but store all > > the submitted GET and POST var

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan > wrote: > >> On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: >> >> > I'm trying to write a VERY simple script that does nothing but store all >> the submitted GET and POST vars in a

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan wrote: > On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > > > I'm trying to write a VERY simple script that does nothing but store all > the submitted GET and POST vars in a string and echo it out. > > > > $response = print_r($_REQUEST, tru

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
Sorry, my typo, $_POST is one of the options we tried, not $POST. It returns an empty array also. On Aug 18, 2010, at 1:50 PM, Joshua Kehn wrote: > On Aug 18, 2010, at 4:45 PM, Brian Dunning wrote: > >> I'm trying to write a VERY simple script that does nothing but store all the >> submitted

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Marc Guay
> $response = print_r($_REQUEST, true); > echo $response; I'm sorry I don't have any input on your actual question but tohuhgt I'd mention that this can be shortened to: print_r($_REQUEST); ... if I'm not mistaken. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > I'm trying to write a VERY simple script that does nothing but store all the > submitted GET and POST vars in a string and echo it out. > > $response = print_r($_REQUEST, true); > echo $response; > > The problem is it only shows GET vars

[PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
I'm trying to write a VERY simple script that does nothing but store all the submitted GET and POST vars in a string and echo it out. $response = print_r($_REQUEST, true); echo $response; The problem is it only shows GET vars. I've tried $POST instead of $_REQUEST and it always gives an empty a