Header Question
Hi,
I have a PHP script which performs some processing. And, when that is
done, I want to use the 'header' command to load a different page.
I read that this command must be the first in the script, before
anything else is put to the screen. I have a bunch of coding to
define variables and store them in a MySQL database, but nothing goes
to the screen.
After I perform all my processing, I put the header command in and all
I get is a blank screen?? If I put the command at the top of the
file, it works fine. The problem is, I have conditional statements in
this script, which will load different pages depending on the
condition met:
if (some condition) {
load page 1
} else {
load page 2
}
If hte header must be the first line, how can I accomplish this?
Thanks!
John
|