Are you getting an error that the headers have already been sent? Also try this:
header ('Location: http://website/next.php'); ^ ^ ---single quotes--- On Thu, 21 Mar 2002, Ljungan wrote: > That was exactly what a meant! =) But you see, I have one problem, nothing > happens when execute the code???? What do I do wrong? Here is a code > example: > if($column){ > header("Location: http://website/next.php"); > print "hello?"; > exit; > } > > The "print"line prints just fine (even if it shouldn't, I just put a text > there to see how far the code get) but the line above doesn't? I dont come > to the website... :(. I know it exist! > > Thanks/ > > Jens > > "Ljungan" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > what do I do if I want to direct people from my website to another? Im > sure > > its very simple but I cant find out how... please help me! > > /JEns > > > > > > > > -- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php