Greetings,
I'm using the following command..
header("location:login.php");
However, when it executes, it only affects the DIV it's currently in. How do I make it affect the whole page?
Many thanks in advance.
it should not unless it executes inside an iframe.
If you want it to affect the whole page, why didn't you just put it at the beginning of the file?
Alternatively, if you want to redirect a page, use can also use Javascript to handle that for you, i.e.
<div id="whatever"><script>window.location = 'login.php';</script></div>
精彩评论