This is the code I am using within my html file
<? if (empty($_POST["name"]) || empty($_POST["gender"]) || empty($_POST["dorm"]): ?>
You must provide your name, gender, and dorm! Go <a href="froshims2.php">back</a>.
<? else: ?>
You are registered! (Well, not really.)
<? endif ?>
I get a error saying:
Parse error: syntax error, unexpected ':' in /home/jharvard/vhosts/localhost/public/week2/register2.php on line 20
I don't understand why this form of if else is not working