I need form data to be sent to two different pages(a0.php & a1.php). I cant use session because I dont have access to (a1.php) page.
So now i want some intermediate page where i can access the form data and redirect to another page as form post itself.
existing
//front end
<form action="a1.php" method="post">
</form>
//a1.php
<?php
var_dump($_POST);
?>
Needed
//front end
<form action="a0.php" method="post">
</form>
//a0.php
<?php
var_dump($_POST); //access form data here
header("location:a1.php")// pass form post data through redirection
?>
//a1.php
<?php
var_dump($_POST); //access form data here also in same format/fashion
?>
Note: I dont want to pass parameters in url, in this case, I prefer POST over GET
header()in a0.php to a1.php if it is not sensitive data.