I'm following a PHP tutorial which is teaching about $_POST and it had me create an exercise with two pages. On the first page (Form page) it creates a form where a user enters Username and Password. Once they click submit, it opens on the second page (process.php) where the Username and Password should be displayed as a result of using $_Post. However, when I click submit on the first page, it takes me to the second page where only the ":" in the Echo statement is displayed. No username, no password.
Any ideas? I've copied the form page and the process.php below.
Form page
<html>
<head>
<title>encode</title>
</head>
<body>
<form action="process.php" method="post">
Username: <input type="text" name="username" value="" />
<br/>
Password: <input type="password" name="password" value=""/>
<br/>
<input type="submit" name="submit" value="Submit"/>
</form>
</body>
</html>
Process.php
<html>
<head>
<title>encode</title>
</head>
<body>
<?php
$username = $_Post['username'];
$password = $_Post['password'];
echo "{$username}: {$password}";
?>
</body>
</html>