Posts: 1,832
Location: Somewhere else entirely
|
You can only use the header function BEFORE any output is sent to the browser. You have to call it before you have echoed anything, written anything outside of <?php tags, or included any files that produce output. Watch out for spaces and newlines at the top of your files, or includes that generate output and reorder things so that header() comes first.
An alternative is to look into output buffering, but I'm not familiar with this since I've never had a need for it.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
|