I'm developing a meeting registration system with 3 basic pages. Page 1 the registrant inputs information. Page 2 the registrant can view and confirm the information. Then the user clicks an input button that calls a PHP page (page 3). This PHP page stores the information into the database. The problem is that when the user clicks the button, Page 2 stays on the screen until page 3 is finished running the PHP code. This could be a few seconds and some users might click the button again thinking they didn't click it the first time.
How can I have a prompt come up to show that the user clicked the button while the PHP code runs?
I'm using a 'controller' file to include the pages. This code runs in the controller page when the button clicked is...
Is there a way insert a line of code before the include statement that would clear the screen and put up a text prompt?