Header Location

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Header Location

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

and what does

Code: Select all

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