Hi,

I have a PHP script that uses the following code to redirect to a page of the user's 
choice:

header("Location: http://www.mypage.net/";); 

In examples of this type of coding in various scriots,  the above line is always 
followed by the statement:

exit;

I am wondering why.  When executing a Header("Location"); statement, does control 
return to the PHP script after execution?  In that case, I assume that the exit; 
statement is there in order to terminate the php script.  In that event, can I execute 
code within my script after calling the Header("Location") page?

Reply via email to