PDA

View Full Version : redirect after a few seconds [php]



Rockstar
January 14th, 2005, 03:35 AM
I have a question.

How do you redirect after a few seconds?

I know that you can do redirect stuff with header(location), but how do you do that based on time? like for example a few seconds after the page loads.

Thanks

teiz77
January 14th, 2005, 04:02 AM
I have a question.

How do you redirect after a few seconds?

I know that you can do redirect stuff with header(location), but how do you do that based on time? like for example a few seconds after the page loads.

Thanks

you should do this with a meta refresh. You can only send headers when there has been no output to the browser.

Rockstar
January 14th, 2005, 04:30 AM
ah i see thanks