Hello,
I am making a forgot password page for my login system and my form is not showing up. I checked everything and can't seem to find the mistake. I'm sure its a stupid little one but can't seem to find it. Can anybody help? Code below.
Thanks.
Also, I forgot to mention, that it is showing my 'else' statement when I reload my page meaning its just showing me a message of "Please logout to view this page"
I am making a forgot password page for my login system and my form is not showing up. I checked everything and can't seem to find the mistake. I'm sure its a stupid little one but can't seem to find it. Can anybody help? Code below.
Thanks.
<?php
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Member System - Login</title>
</head>
<body>
<?php
if(!$username && !userid){
if($_POST['resetbtn']){
}
echo "<form action='./forgotpass.php'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='resetbtn' value='Reset Password' /></td>
</tr>
</table>
</form>";
}
else
echo "Please logout to view this page.";
?>
</body>
</html>
Also, I forgot to mention, that it is showing my 'else' statement when I reload my page meaning its just showing me a message of "Please logout to view this page"