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.
thanks
Printable View
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.
thanks
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 secondsCode:<META HTTP-EQUIV=Refresh CONTENT="X; URL=URL">
and URL = URL