Code: Select all
session_start();
$go_to = $_SESSION['go_to'];
$url = explode("/", $go_to);
unset($_SESSION['go_to']);
header("location: /".$url[3]."");Basically what happens is i can echo $url[3] and get the result i want (index.php) or the back end of the url, so i put that in the header so it will foward me back to that page. Instead it fowards me to /p instead of the actual place i came from.
Any ideas?
Thank you
Anthony
?>