Hi guys. I want to click one button "Process" and are sequentially executed several processes in php. Something like this: $process1 = new Process1(); $p1 = $process1->result(); $process2 = new Process2(); $p2 = $process->result(); $process3 = new Process3(); $p3 = $process3->result(); PHP: Meanwhile I want to show a Progress Bar (bootstrap) during this processes. How to do that?
First, do you have classes named process1, process2 and so on? But,it sounds like you could just do this via ajax: click the button, and for each result return something which will update the progress bar.
You won't need a separate waiting page. Since you haven't really said anything about what this is supposed to do, and how long it's supposed to take, I have no idea if it's the smart or right way to do it.
After that different treatment processes and calculations that are done internally and that takes a few seconds and meanwhile the system should display a waiting screen. Maybe not a progress bar but a waiting screen can be.
Then just do a spinning logo before redirecting or showing some return / end result when it's finalized. A spinner is quite common, and if it's just a few seconds, that should be perfectly fine.