On Tue, Jun 02, 2009 at 11:50:55AM -0700, revDAVE wrote:

> I have this line at the end of 1 big php block...
> 
> header('Location: mypage.php?id=' .
> $_SESSION['id'].'&cat='.$_SESSION['cat']);
> 
> It works fine on my dev. Testing server but does not forward on the actual
> website....
> 
> Any way to fix this?
> 
> ----
> 
> Home is php 5
> 
> Server (not sure) might not be 5 - maybe v4
> 
> Could that be the problem?
> 

If I ever have a redirect like this, I *always* put after it:

exit();

which ensures it will not do anything else.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to