grk101 Posted May 2, 2009 Share Posted May 2, 2009 So i have a form that i am building out. This form is basically a 5 step submission.. here is the break down below so far what i have is page1.php click submit to go to step 2, then click to go to page 3 etc etc but i have actually built all these seperate pages. Is there a way that i can make one php file with all the steps in one page? so when i click Proceed to Step 2 it just loads the same initial page but with step 2 information? Quote Link to comment https://forums.phpfreaks.com/topic/156497-loading-multiple-steps-within-one-php-page/ Share on other sites More sharing options...
ignace Posted May 2, 2009 Share Posted May 2, 2009 if (isset($_GET['page']) && $_GET['page'] === 1) { ..page 1.. } else if (isset($_GET['page']) && $_GET['page'] === 2) { ..page 2.. } .. Quote Link to comment https://forums.phpfreaks.com/topic/156497-loading-multiple-steps-within-one-php-page/#findComment-824103 Share on other sites More sharing options...
grk101 Posted May 2, 2009 Author Share Posted May 2, 2009 where you have page 1... is that where the html goes? Quote Link to comment https://forums.phpfreaks.com/topic/156497-loading-multiple-steps-within-one-php-page/#findComment-824374 Share on other sites More sharing options...
ignace Posted May 2, 2009 Share Posted May 2, 2009 I would say no as html shouldn't be messed in with php, so yes. Quote Link to comment https://forums.phpfreaks.com/topic/156497-loading-multiple-steps-within-one-php-page/#findComment-824397 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.