what skiflyer said, however there is a bug with these boards which will invalidate his code.
whenever you put a url in code it appends a ; .
remove the first one after the url, but keep the last one. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
c'mon, share - you know its the right thing to do ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
you say that all headers must be sent before anything else? Can someone explain further. I read the same thing on php.net but still confused.
what if i want to send people to different places depending on a variable like:
****************
x=session("variable"
if x =1 then
header("Location:
gwu
Sure, it's output to the browser that's a concern here.
What you put will work, but a print statement before a header command, or including a file which echos something would not. Additionally, a mistake a hear of once and awhile is blank spaces before the opening <?php tag, which is sent to the browser to print blank space.
likelylad
That will only work for people with javascript turned on in their browser... that may or may not be a concern for you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.