I'm using a function called headerLocation()
in order to redirect properly.
This is the pertinent part of the function, I'm using it to redirect and then display an appropriate message (personal preference).
function headerLocation($location,$message)
{
$_SESSION['output'] = $message;
header("Location: ". $location);
}
The problem is, when I run the script, the header("Location: ". $location);
part is activated without even calling the function (when I initially require it for php parsing).
This renders the function useless.
Is there any way around this?