Re: redirection using PHP by nibbleguru on December 30th, 2003 11:32:34 AM Use
header('Location: http://newlocation/'); |
Re: redirection using PHP by elesha on December 30th, 2003 12:22:10 PM ok here is the code I wrote...nothing comlicated..
redirection
But I kept getting an error saying that :"Cannot send header information becasue it has already been sent."
I dont know what that means! PLease help! |
Re: redirection using PHP by elesha on December 30th, 2003 12:24:14 PM sorry the code in HTML does not show up in my previous comment...here it is then: |
Re: redirection using PHP by nibbleguru on December 31st, 2003 01:09:50 AM To use
header('Location: http://newlocation/');
you must have this code before you output anything.
no html/empty lines should have had got printed.
something like:-
if($user_ok) {
header('Location: http://newlocation/');
}
else {
//output all your html here
} |
Re: redirection using PHP by gregmiller on June 10th, 2004 12:45:56 AM check if you have any whitespace or exactly before your php declaration
or u havent sent any information before using header
hope this solves ur prob
Greg |
Re: redirection using PHP by Anonymous Ghost on November 10th, 2004 01:17:58 AM we are trying for the same thing |
gfhfhgh: by Anonymous Ghost on September 26th, 2006 11:51:34 PM grghdeher |