AJ wrote:[color=blue]
> I'm having trouble getting something simple working and can't see why.[/color]
Are you getting errors? If so, what are they?
[color=blue]
> header("Location: agentindex.php");[/color]
This will force most browsers to redirect immediately. You should also
specify the full URI, rather than the file name alone.
[color=blue]
> echo "AGENT";[/color]
This may never be executed, or rather may never be seen inthe browser as
it will be replaced with the page to which you have just redirected.
[color=blue]
> header("Location: llindex.php");
> echo "LANDLORD";[/color]
Likewise
If you are getting headers already sent errors, you script is outputting
something before the location call (even one white space character).
Check the manual for Output control and for headers:
http://uk2.php.net/manual/en/ref.outcontrol.php http://uk2.php.net/header
Hope this helps, regards,
Andy