I am confused with two terms
-
header ("Location:homepage_php"); -
include("homepage.php");
I am guessing that header is used after checking password procedure and about include, you can use it anywhere. But i am not sure what is actual difference between them and at what place out of these two one should be used.
Header forwards the user to a new page, so PHP reinitializes, it’s like a HTML meta redirection, but faster.
Include just includes the file where you call it, and it executes it as PHP, just like if the code from homepage.php was written where you write
<?php include('homepage.php'); ?>.