The idea/goal:
I have a username and password inside a text file on my computer. The form on the index page allows the user to sign in with their us
Start a php session on each page right after the opening php tag:
session_start();
After you determine that the name and password work, and before you do the redirect, add this line:
$_SESSION['name'] = $name;
On any subsequent pages, just echo something like this:
echo "Welcome ".$_SESSION['name'];