A quick question related to PHP development, I start thinking more about this because I develop more complex sites. Actually, we have a basic PHP / XHTML inbox (messaging system). I check it at the top (check if the user is logged in or not, check that the user has the correct permissions etc). Then use the 'header (' location: www.abc.com) 'function if authentication fails. The question is whether I write the inbox code in a bigger 'other' block of the rest or just use standard HTML. I read somewhere about spoiling any code after using the 'header' function.
simply
exit ();
This will not be a problem.
In addition, you do not need a big echo like this, you can echo out html as you like:
< Code> & lt ;? Php // php stuff if (test) {? & Gt; Html & lt ;? Php} and {? & Gt; Other HTML & lt ;? Php}? & Gt;