Here's the situation:
I have three PHP pages, i'll call them page1.php, page2.php, page3.php
page1.php basically contains basic HTML Form where user enter their login and password, and on SUBMIT will send the request to page2.php as POST request.
page2.php gets the $_POST values from page1.php, do some magic stuff to the $_POST values sent by page1.php, then redirect the end result to page3.php
page3.php print the result from page2.php.
Now, the problem is:
I want the magic data from page2.php to be sent to page3.php as a POST request automatically. So, if i do print_r ($_POST) on page3.php, i'll get the list of all $_POST values.
How do I do the redirect from page2.php to page3.php and keep it as POST?
I tried header ("Location: page3.php");, but that sends the redirection as $_GET request and not $_POST request.
Thanks.
I have three PHP pages, i'll call them page1.php, page2.php, page3.php
page1.php basically contains basic HTML Form where user enter their login and password, and on SUBMIT will send the request to page2.php as POST request.
page2.php gets the $_POST values from page1.php, do some magic stuff to the $_POST values sent by page1.php, then redirect the end result to page3.php
page3.php print the result from page2.php.
Now, the problem is:
I want the magic data from page2.php to be sent to page3.php as a POST request automatically. So, if i do print_r ($_POST) on page3.php, i'll get the list of all $_POST values.
How do I do the redirect from page2.php to page3.php and keep it as POST?
I tried header ("Location: page3.php");, but that sends the redirection as $_GET request and not $_POST request.
Thanks.