I get this error with the code below. There is no line 53 though?
Error:
Parse error: syntax error, unexpected T_ELSE in /home/bitcoin/index.php on line 53
Code:
<?php
echo "<h1 align=\"center\">Welcome!</h1>";
echo "<h2 align=\"center\">This site is still being made! Check back soon!</h2>";
$code = $_POST['code'];
if(isset($_POST['submit'])) {
if($code == 'liam') {
echo "In!";
}else {
echo "Wrong! You entered \"$code\".";
}
}
?>
<html>
<head>
<title>Closed</title>
</head>
<body>
<p>If you are a tester, enter your code below!</p>
<form action="" method="post">
<?php
if($nopswd == 1) {
echo "<input type=\"text\" name=\"code\">";
else {
echo "<input type=\"password\" name=\"code\">";
}
?>
<br><input type="submit" name="submit" value="enter">
<input type="button" name="nopswd" value="Show Code" onClick="<?php showcode(); ?>">
</body>
</html>
<?php
function showcode()
{
$nopswd = 1;
header("Location: http://bitcoin.liamwli.co.uk/index.php");
}
?>