Click to See Complete Forum and Search --> : stop execution of the code


SamKook
04-23-2004, 08:44 AM
How can I make the code to stop executing when i redirect my page?

Presently, i use
header("Location:http://10.10.2.5/Admin.php");
but the code after this line continue to execute and the page is only redirect at the end of the page.

shimon
04-23-2004, 09:02 AM
you can put an exit(); call in there, like so:

header("Location: mypage.php");
exit();


that should sort it out :)