Hi,
do not use switch in this case. It seems like you're having a form with method="post". Avoid mixing get and post variables in that case.
Do something like:
<form method="post" ...>
... inputs for name and password ...
<input type="submit" name="login" value="Enter" />
</form>
Then:
session_start();
include("dogs.inc");
if (isset($_POST['login'])) {
$onnection = mysql_connect($localhost, $root,$password) or die ("Connection error: ".mysql_error());
mysql_select_db($MemberDirectory, $connection) or die("Selection error: ".mysql_error());
$sql = "SELECT loginName FROM Member WHERE loginName='{$_POST['fusername']}'";
$result = mysql_query($sql,$connection) or die("SQL error: ".mysql_error());
// check the login data and so on
} else {
echo "do parameter missing!<br>\n";
}
Do you have some password validation ? The password field is missing in the SQL query.
Thomas