Jump to content

variables and header redirect


blueman378

Recommended Posts

hi guys, well heres what im trying to do:

$old = $_SESSION['oldpage'];
$_SESSION['error'] = "Username/password combination not correct!";
header( "Location: {$old}" );

but it simply isnt redirecting,

btw $_SESSION['oldpage']; is set soewhere else

 

any ideas,

 

cheers matt

Link to comment
https://forums.phpfreaks.com/topic/95011-variables-and-header-redirect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.