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?? 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? 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. 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
Archived
This topic is now archived and is closed to further replies.