Thanks to everyone who responded to my inquiry. Everyone suggested that the problem might be with the html form itself, as opposesd to the form handler, which I named "authenticate.php". I am creating a form so that a user will log-in with his/her last_name and password. But when I press "submit" I am taken to the directory of my files.
Thanks, and here is the code for the html form:
<html>
<head>
<title>Log-in Page</title>
</head>
<body>
Please complete the following fields to log in.
<form action="authenticate.php" method="post">
Last Name:<br>
<input type="text" name="last_name">
<br><br>
Password:<br>
<input type="text" name="password">
<br><br>
<input type="submit" value="Log in">
</form>
</body>
</html>
Frankobi