Hi everybody
I've been playing around with PHP within actinic and trying to come up with a simple login script. It's all working okay except for one thing - the header("Location:") field.
It works fine in a separate function, however when I include it within actinic, the header doesn't seem to work.
Here's the code I've included within actinic:-
The function works as if I replace the "header(Location..." with a meta refresh it works within actinic, just can't seem to figure it out why.
I've been playing around with PHP within actinic and trying to come up with a simple login script. It's all working okay except for one thing - the header("Location:") field.
It works fine in a separate function, however when I include it within actinic, the header doesn't seem to work.
Here's the code I've included within actinic:-
PHP Code:
<?php
if (!isset($_SESSION['admin_logged_in'])) {
header('Location: http://www.google.com');
}
if (isset($_SESSION['admin_logged_in']))
{
echo "Admin set!";
}
?>
Comment