![]() |
|
|||
|
I need this code to be done in PHP.
I need it to load a page, then after 5 seconds it will go to a different page (and stay there). Examples of places this is done is on download pages, when you click download and 5 seconds later it redirects you to the actual file. I already have the page I want this on, all the text and everything, so all I need is the code to wait a few seconds, then forward to a different page (in the same window). In Summary: The page loads, waits a few seconds, and forwards to a different page. Must be done in PHP. |
|
|||
|
i made a quick php page with a redirection javascript in it.. is this the kind of thing youre trying to do?
http://ztek.pcplayground.com/javascript_test.php |
|
|||
|
<?php
echo "<meta http-equiv=\"refresh\" content=\"1;URL=yourdir/yourdir/file.php\">"; ?> replace the "1" with the time in seconds u want it to take before it goes to the specified page. thats the only way u can do it in php if u want it to wait before redirecting. the php function header("location: blah.php"); will immediatly redirect you. no time control. so u should use the one up there for what u wanna do. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|