Creating a loading page

Hi all,
I need to know how to create a loading page while processing is going on in the background. Basically to water it down I have a php page that when click saves content to a database, while it’s doing this I need to have another php/html page display that says processing or whatever. Once processing is done the page will forward to another page and so on.