Page 1 of 1

Header Location

Posted: Sun Jun 18, 2006 12:25 am
by tecktalkcm0391
I have a login that has a hidden field of destination, and if the user is logged in then its suppost to redirect them to the desintation.

I have:

Code: Select all

$destination = $_POST['destination'];
header("Location:". $destination);

Code: Select all

Whats is wrong with it cause I can't get it to work at all! I just get an page can't be displayed message.

Posted: Sun Jun 18, 2006 1:03 am
by John Cartwright
and what does

Code: Select all

var_dump($_POST['destination']);
yield?