Thanks for the speed apply.
There is a slight problem with header();
Since I use require, I cannot use header in the middle of the code.
I just tried with session_start(), with same directing page method, and obviously it doesn't work.
Am I meant to have a separate file for redirecting?
I know these questions sound very noobish, but I am trying to learn so please bear with me.
Thanks in advance.