May 21st, 2004, 07:04 PM
delay a page to display
How I can stop a page for some time to display, e.g
i use header(location:"url"); to redirect in a moment but I want to delay for sometime and displaying a message that you are now redirecting to this page.
May 21st, 2004, 08:32 PM
Header() must be at the top, and nothing can be above it. I reccomend you use <meta> refresh instead. It does the same thing, but you can set an optional delay before it refreshes. (you can choose which URL to go to by hardcoding it or just throw a variable in it.
Where X = delay in seconds
<META HTTP-EQUIV=Refresh CONTENT="X; URL=URL">
and URL = URL