PHP: Display a “loading” page while a php script is executing

后端 未结 3 670
忘了有多久
忘了有多久 2021-01-16 02:14

Here is what I\'ve got right now...

I have a web page that when accessed, it connects to surveygizmo.com via their open API, retreives a whole lot of data, and then

3条回答
  •  粉色の甜心
    2021-01-16 02:54

    Create a loading page that displays your desired loading message. Then using ajax (I HIGHLY recommend jQuery) load a separate php file that loads the outside data. Once the data returns to your loading page, it's a simple task of hiding the loading message and replacing it with the output of the ajax.

提交回复
热议问题