budimir Posted September 13, 2008 Share Posted September 13, 2008 Hey guys, Is it possible to send data values through header to some other page?? For example, I have a form and action is PHP_SELF. On second page I have a file where I store all the values. Is it possible to transfer all the values like $_POST["field"] through header()??? If I only redirect, the second page is getting the values. So, I'd like to do with header() something what is done with method=post, action="store_data.php" in a form when button is clicked! Any ideas?? Quote Link to comment https://forums.phpfreaks.com/topic/124072-solved-sending-data-values-with-header/ Share on other sites More sharing options...
DarkWater Posted September 13, 2008 Share Posted September 13, 2008 Either use a session or just have better logic flow in your application. Why do you need to redirect with the POST data? Quote Link to comment https://forums.phpfreaks.com/topic/124072-solved-sending-data-values-with-header/#findComment-640541 Share on other sites More sharing options...
budimir Posted September 13, 2008 Author Share Posted September 13, 2008 It was just a question. I was curious. I used some bad logic and I came up with this idea. Was able to work around. Now is OK. Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/124072-solved-sending-data-values-with-header/#findComment-640557 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.