Hello,
Just started creating my first dynamic site for a uni project.
right now i've just got my registration/ login system sorted.
when you navigate to my site, the index.php has a query asking whether a user session is active, if not it loads the login page, if there is it loads the homepage.
at the moment, im using the include''; function. my question is does this just load the file within the current page? because i want to have a way of completely loading the new file/page, but I dont know the syntax for this?
so currently i have:
if(strcmp($_SESSION['uid'],"") == 0){
//no user session, so go to startpage where the login/ register form is
include'./startpage.php';
}else{
include'./home.php';
}
this works but i think its loading the new files within the index.php which I dont want
thanks