in my login.php i use
header ("Location: admin.php");
but i want to use
header ("Location: $page");
but it wont work 🙁
this is the link
http://actionleague.co.uk/login.php?page=/spam.php
so once the person logins in they goto spam.php as thats the page they tried to originally access but were'nt logged in.
You have to put the complete url in.
Header( "Location: http://www.mysite.com/page.html" );
HalfaBee
so
header ("Location: http://www.actionleague.co.uk$page");
That does nt work 🙁
What about this?
header('Location: '.$page);
// [e]r!k
Originally posted by HalfaBee You have to put the complete url in. Header( "Location: http://www.mysite.com/page.html" ); HalfaBee
You didnt do this....
your code shoulda been
header("Location: http://www.actionleague.co.uk/$page");
nopes neither of those work
The promblem seem to be with $page
$page = http://www.actionleague.co.uk/test.php
header("Location: $page");
That does nt bring up any page....
show us the rest of your code... maybe you are outputting something before you call header(); ?
Thanks everyone!
I was making a stupid mistake 🙁
thats works just perfect - the $page became $null as I did nt carry over the $page with $PHP_SELF once login button was clicked!
Silly mistake
Thanks again