psyickphuk Posted December 10, 2008 Share Posted December 10, 2008 At the moment I use this on my form_write.php page to see whether to just write the page or go to a new page - form_submit.php - to then do validation etc: extract($_REQUEST); // GET posted fields // If the form has been submitted then goto form submit page if(isset($submit)){ header( "Location: /index.php?article=form_submit&xMonthlyIncome=$xMonthlyIncome&xNatureOfIncome=$xNatureOfIncome&etc etc etc"); exit; } I want to POST values instead of GET them though - is there code for the 're-POST' of values from a form to the next page? Or am I going to have to change how the pages are structured to get this to work Quote Link to comment https://forums.phpfreaks.com/topic/136357-solved-converting-my-form-from-get-post-how-to-handle-header-location/ Share on other sites More sharing options...
trq Posted December 10, 2008 Share Posted December 10, 2008 Or am I going to have to change how the pages are structured to get this to work Indeed you will. Quote Link to comment https://forums.phpfreaks.com/topic/136357-solved-converting-my-form-from-get-post-how-to-handle-header-location/#findComment-711388 Share on other sites More sharing options...
psyickphuk Posted December 10, 2008 Author Share Posted December 10, 2008 balls OK, one for the to-do list. Quote Link to comment https://forums.phpfreaks.com/topic/136357-solved-converting-my-form-from-get-post-how-to-handle-header-location/#findComment-711393 Share on other sites More sharing options...
rhodesa Posted December 10, 2008 Share Posted December 10, 2008 you can store them in session variables instead if you are just looking to cleanup the URL, you can always use Apache's mod_rewrite to make it look better Quote Link to comment https://forums.phpfreaks.com/topic/136357-solved-converting-my-form-from-get-post-how-to-handle-header-location/#findComment-711395 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.