OK, I'm working this through my head as I write this, so bear with me!!
So, I could have something like this:
index.php
//this will have a form in it, which a user fills in a number, 1 or 2
//form action = "redirect.php"
if ($error)
{
echo($error);
}
redirect.php
if ($number == 1)
{
header ("Location: index.php?error='Put a 2'");
}
else if ($number == 2)
{
header ("Location: pagetwo.php");
}
That sort of thing.... I understand what you mean about the no-previous-output thing... But it can do some validations and stuff, right?
Just as long as it doesn't actually PRINT anything to the browser.
Thanks very much for your help.🙂