Thank you Jamie.
Does this mean that if I want to check to see that a submit button from a form in a function in an included file has been hit, I'd have to use something like:
if (!isset($_POST['Login'])) {
login();
} else {
print ("You are logged in".$_SESSION['username']);
}
The if else statement is in index.php....index.php includes functions.php....functions.php has the login() function.
Once submit is hit, and the username is verified, I'd like to display the message rather than the login form again.
Where I'm really confused is:
Do I have to start a session in the function itself in order to keep track of username, password etc?
Or, since there is a session started at the top of index.php and everything else is include files, will all the included files inherit the session_start() call?
Thanks again