Hi,
I'm building a password field that only allows users with the password to visit the page.
<?php
$password = "test";
if ($_POST['password'] != $password) {*
?>
<form action="home.php" method="post">
Password:<input type="password" name="password" />
<input type="submit" name="enter" value="Enter" />
</form>
</div>
<?php
} else {*
?>
<!--HOME PAGE CONTENT GOES HERE-->
<?php
}
?>
When I run the script I get the following error:
Parse error: syntax error, unexpected T_STRING in /home/jacsau/public_html/test.php on line 16
PS: I'm using a host that uses the cPanel control panel in case you needed to know.