xodus1 Posted March 6, 2009 Share Posted March 6, 2009 Hi Guys, I'm new to PHP and need help with passing variables from my form to multiple pages. I have global registers turned to off. I am able to retrieve my form inputs on the second page.. however unable to retrieve the same on the other pages after. for example - form.php - my form page input - $_POST['startdate'] action.php - I'm able to retrieve - $_POST['startdate'] action2.php - I have a link on action.php which then redirects to this page; again requires - $_POST['startdate'] - doesn't work ... Any experts out there?? Link to comment https://forums.phpfreaks.com/topic/148190-solved-how-do-i-retrieve-my-form-_post-on-multiple-pages/ Share on other sites More sharing options...
vicodin Posted March 6, 2009 Share Posted March 6, 2009 You need to start a session and save the variables as a session. For more information read this. http://us2.php.net/manual/en/book.session.php P.S. You can also save the variables in a database and then retrieve them as well. Post was built to only pass to the next page in which you told your form to go to. Link to comment https://forums.phpfreaks.com/topic/148190-solved-how-do-i-retrieve-my-form-_post-on-multiple-pages/#findComment-777865 Share on other sites More sharing options...
xodus1 Posted March 7, 2009 Author Share Posted March 7, 2009 Worked like a charm!! thanks a lot Link to comment https://forums.phpfreaks.com/topic/148190-solved-how-do-i-retrieve-my-form-_post-on-multiple-pages/#findComment-779016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.