Took some work but guess what? what? I did it (= Thanks for all your guys help, but this is what really worked:
if (isset($_POST['submit']))
{
$username = htmlentities($_POST['username']);
$password = htmlentities($_POST['password']);
$email = htmlentities($_POST['email']);
$name = htmlentities($_POST['name']);
$confirmpassword = htmlentities($_POST['confirm password']);
if ($username == '')
{
echo 'You did not enter a username!<br>';
}
All you do now is just add each if for each $variable lol, but thanks again for all your guys help! I really appreciate it!
Edit:
Just wanted to add that for the confirm password it looks like this:
if ($confirmpassword !== $password)
{
echo 'Your passwords did not match up!<br>';
}