Possible to connect to an db, or you can hardcode a password like : if $pinput == "monkey114253" { session_start() YOUR LOGGED IN etc.etc
Or you can get it from the database, like SELECT password FROM users WHERE 'username' = 'monkey' and then see if the password equals the password entered