I have a login form that does the following:
- It accepts users that are registered with a redirecting logon message.
- It tells you if you need to register for your username/password is not in the system.
When nothing is entered into the username/password form, it redirects to a page that has sensitive mysql data... how do I add a php message that yells at the user to put in information?
if ($numrows != 0)
{
$user = mysql_fetch_assoc($query);
echo "Welcome,".$username. "you are being directed to the <a href=\"page.php\">.</a>";
$_SESSION['username']= $user['username'];
}
else
{
echo ("please reenter your username and password. If you don't have those, please <a href=\".php\">register.</a>");
}