Re: $_POST issues
| From: | Nadim Attari | Date: | Wed, 01 Dec 2010 17:10:29 +0000 |
| Subject: | Re: $_POST issues | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309801@lists.php.net to get a copy of this message | ||
On 12/01/2010 08:56 PM, Nadim Attari wrote:
On 12/01/2010 06:50 PM, Bundhoo M Nadim wrote:Sorry If you already done tests or downloaded example2. I made a mistake specifying the response and error urls. I've corrected it on the server. You can test / download example 2. nadim attari alienworkers.comHello, Can someone explain me what this piece of code basically does ? <?php 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; exit(0); ?> Well, the code is redirecting to some page with query string constructed using the $_POST data. My problem is not the redirection; but all I want is to get the data in $_POST If I just put only this piece of code: <?php 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. So why var_dump($_POST) is returning just array(0) { } ??? nadim attari alienworkers.comHello all, Perhaps I am not being able to explain you my problem correctly (sorry my poor English) Here is the tests i'm doing: http://www.yulounge.com/_sbm/servlet/send_transaction.php And you can get the codes here: http://www.yulounge.com/_sbm/servlet/servlet.zip I've got these codes from them at SBM. I'm asking myself this question: Why can't I get the values of $_POST (response.php in the example) but the page is able to http_build_query() using the same $_POST ?? To demonstrate what I am trying to figure out, please try this one also: http://www.yulounge.com/_sbm/example2/send_transaction.php Codes: http://www.yulounge.com/_sbm/example2/var_dump.zip In this example2, only the page response.php has been changed. Thx in advance, Nadim Attari Alienworkers.com