Can i use header() to redirect to multiple URLs with a time gap in between? Suppose i have url1 and url2. Now, what i want is that header first redirects to url1. Then say,after 5 seconds, it redirects me to url2. Is there a way i can do that?
I tried the following simple code
<?php
header("Location: url1");
header("Location: url2");
?>
But this takes me immediately to url2. I want a time gap in between. How can that be done? Thanks in advance.
As pointed out by subirkumarsao, Martin and Edmunds, iframes is the way to go.
Here is the final code:
Now exp2.php has a submit button(This appears at the bottom of frame) which takes me to next.php. And next.php has the code: