You can do this client-side using:
Code:
<meta http-equiv="0;url=page-to-go-to.html" />
in the head of your page. However, doing it server-side is better. To understand the nature of your problem, you must know (basically) how HTTP works. First, the page headers are sent; then comes the main body of the file. To seperate the two, two CRLFs are used. Obviously, once the headers have been sent, you can't pull them back and edit them. The way to avoid this error, then, is to perform all header() calls before you output any HTML.
Bookmarks