chris_davidsonuk Posted April 24, 2006 Share Posted April 24, 2006 I have a form which is quite long. I have split it up into 3 parts but I only want to use only one file instead of posting the answers between 3 files. For example:- The file is called mortgage.php- The first part of the form would be mortgage.php?stage=1 - When all of stage 1 of the form has been completed they would go to mortgage.php?stage=2What I can't figure out?- When the user has submitted the form at stage 1 how would I change the url to mortgage.php?stage=2- Would I still have to $_POST the results of each stage if all the information is taken within the same file?Any guidance would be appricated! Link to comment https://forums.phpfreaks.com/topic/8271-form-processing/ Share on other sites More sharing options...
Ferenc Posted April 24, 2006 Share Posted April 24, 2006 <form action="mortgage.php?stage=2" method="post" >then use a switch in mortgage.phpswitch($_GET['stage']){ default: case '1': // do stage 1 here break; case '2': // do stage 2 here break;} Link to comment https://forums.phpfreaks.com/topic/8271-form-processing/#findComment-30169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.