linkcool Posted March 16, 2010 Share Posted March 16, 2010 When we make a form, we use an action file. The $_POST[] is used there(in the "action file/page", but can we use them in the page right after the "action file"? how? Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/ Share on other sites More sharing options...
premiso Posted March 16, 2010 Share Posted March 16, 2010 Using sessions will allow you access it. Just store the POST data you want to access into session and call it in the page you want to access it in. Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/#findComment-1026776 Share on other sites More sharing options...
linkcool Posted March 16, 2010 Author Share Posted March 16, 2010 is it really the only way? Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/#findComment-1026781 Share on other sites More sharing options...
trq Posted March 16, 2010 Share Posted March 16, 2010 its not the only way but one of the more effective methods. Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/#findComment-1026782 Share on other sites More sharing options...
PFMaBiSmAd Posted March 16, 2010 Share Posted March 16, 2010 Perhaps if you provided more information about what the data is and why it needs to be accessed on other pages, someone could suggest the best way to handle it. List of some of the possible methods of making form data available on other pages - 1) Session 2) Database 3) Cookie 4) URL GET parameters 5) Hidden form fields Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/#findComment-1026785 Share on other sites More sharing options...
linkcool Posted March 17, 2010 Author Share Posted March 17, 2010 well i want to transfer all the $_POST of the page because i make an uploadverify.php so the person can see what is the picture and to verify the stuff. and then i want to use the $_POST[] in uploadverifyaction.php(after the person clicks yer or no in uploadverify.php) to store everything in the database. Quote Link to comment https://forums.phpfreaks.com/topic/195391-use-_post-in-pages-after-the-action-one/#findComment-1027366 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.