Tom:
Thank you so much for your help. As far as the "_" go, I am not sure why they keep showing up in my code when I post...weird text editor I guess.
Anyway, I made that change and I am now getting another error to an undefined function:
Fatal error: Call to undefined function: () in /public_html/validate.php on line 18
my code currently looks like this:
<?php
Session_start();
// Connects to sql server and logs in with username and password
$db connect here
// Selects all of the data from database
$sql_text = "SELECT * FROM users WHERE usrName = '$formUsername' AND password = '$formPassword'";
$query = mysql_query($sql_text) or die (mysql_error ());
$logged_in = "no";
session_register("logged_in");
if ($mysql_num_rows($query) != 1) {
$SESSION["logged_in"] = "no";
header("Location: ./sorry.html");
exit();
}
else {
$SESSION["logged_in"] = "yes";
header("Location: ./family/index.html");
exit();
}
?>
What do you think??
Thanks again!
Todd