I’m new to PHP world,
what I’m trying to do is to send 3 variables from lets say example.php to next page example1.php and the same variables to the third page example3.php,
the problem for me is, when posting them in $_POST they are visible in example1.php and I assign them to the another variables and again post them to the example3.php by $_POST
and this is how do I redirect between pages not by send form method=”post”
echo "<meta http-equiv=Refresh content=0;url=example1.php>";
and in the second form I send them in method=”post”
what I have tried is using Cookies however it does not work everytime, on every browser, when the user clicks the ‘back’ button and enters new entries the old ones are still stored and so on,
someone had suggested to send them on the URL by $_GET , but I’m sending sensitive data.
My application is a mail registration for external entity that connects to database that is outsourced ( example.php ) if validation is complete and correct, the variables are sent to the other page ( example1.php ) where the user puts his email and password, and in the the third ( example3.php ) all the settings entered are processed, so I cannot get the data from first page to the last.
You may try with following codes: