cmdr_bond wrote:I have a loading screen that has a nice animation that displays while the PHP is working in the background (it usually takes 20sec to do all the stuff). The issue is that it wont load the HTML until the PHP is finished querying -- so it kinda loses the purpose of having that loading screen. But I want people to know the site's working and not have to hit refresh. Can I have the PHP wait until the end of the HTML before running it's stuff? And then have it modify the header or something similar (meta-refresh?) to forward the user to the results page?
Thanks
Simple answer you can't, PHP is a loaded and executed before the page is sent too the browser.
Longer answer: You could write the HTML before your functions etc. get profcessed by echoing it from ther PHP directly.
Cheers,
Ryan Jones