Re: [PHP] $_POST issues

2010-12-01 Thread Steve Staples
On Wed, 2010-12-01 at 20:18 +0400, Nadim Attari wrote: > On 12/01/2010 07:18 PM, Jay Blanchard wrote: > > [snip] > >>> If I just put only this piece of code: > >>> > >>> >>> var_dump($_POST); > >>> ?> > >>> > >>> i get nothing. > > [/snip] > > > > Where are you putting this var_dump? > > > >

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
This thread is a really good example of how difficult it can be to both explain and understand a problem. The original poster might want to restate the question from scratch with a more explicit and complete example. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] $_POST issues

2010-12-01 Thread Jay Blanchard
[snip] > Where are you putting this var_dump? > > That's the only code on the page. Otherwise, the other codes - header(), print, etc. are on the page. [/snip] var_dumping the POST on the same page from which the data originates will not yield anything. Page A - contains data to be posted. Page

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 14:50, Bundhoo M Nadim wrote: > Hello, > > Can someone explain me what this piece of code basically does ? > >    header("Expires: " . gmdate("D, d M Y H:i:s", time() + (0*60)) . "GMT"); >    header("Pragma: no-cache"); >    print "REDIRECT=http://www.domaine.com/page.php?";; >

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
The function http_build_query() is turning your $_POST array into a query string ($_GET), so the answer to this really depends where you're trying to dump the array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Nadim Attari
On 12/01/2010 07:18 PM, Jay Blanchard wrote: [snip] If I just put only this piece of code: i get nothing. [/snip] Where are you putting this var_dump? That's the only code on the page. Otherwise, the other codes - header(), print, etc. are on the page. nadim -- PHP General Mailing L

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 15:18, Marc Guay wrote: >>>    var_dump($_POST); ?> > > Where exactly are you putting this line? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If a script is ran via a url like ... http://www.site.co

RE: [PHP] $_POST issues

2010-12-01 Thread Jay Blanchard
[snip] >> If I just put only this piece of code: >> >> > var_dump($_POST); >> ?> >> >> i get nothing. [/snip] Where are you putting this var_dump? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Marc Guay
>>> >>    var_dump($_POST); >>> ?> Where exactly are you putting this line? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST issues

2010-12-01 Thread Bundhoo M Nadim
On 01/12/2010 19:01, Daniel P. Brown wrote: On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim wrote: If I just put only this piece of code: i get nothing. But the above codes is successfully redirecting me to page.php with a properly constructed query string -> which means that $_POST was never

Re: [PHP] $_POST issues

2010-12-01 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 09:50, Bundhoo M Nadim wrote: > > If I just put only this piece of code: > >    var_dump($_POST); > ?> > > i get nothing. But the above codes is successfully redirecting me to > page.php with a properly constructed query string -> which means that $_POST > was never empty.

Re: [PHP] $_POST issues

2010-12-01 Thread Richard Quadling
On 1 December 2010 14:50, Bundhoo M Nadim wrote: > Hello, > > Can someone explain me what this piece of code basically does ? > >    header("Expires: " . gmdate("D, d M Y H:i:s", time() + (0*60)) . "GMT"); >    header("Pragma: no-cache"); >    print "REDIRECT=http://www.domaine.com/page.php?";; >

[PHP] $_POST issues

2010-12-01 Thread Bundhoo M Nadim
Hello, Can someone explain me what this piece of code basically does ? header("Expires: " . gmdate("D, d M Y H:i:s", time() + (0*60)) . "GMT"); header("Pragma: no-cache"); print "REDIRECT=http://www.domaine.com/page.php?";; $param = http_build_query($_POST); print $param;