Page 1 of 1

[SOLVED] explode()

Posted: Fri Aug 20, 2004 4:41 pm
by pinehead18
Ok, i have been fighting with this for a bit and i'm sure it is just some stupid mistake that i made.

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
?>

Posted: Fri Aug 20, 2004 5:19 pm
by pinehead18
Fixed it.

Thank you