No input file specified ?
Posted by: getmodern
Posted on: 2005-07-07 20:14:00
When I click submit on a form, the following code is run, but I end up with a "No input file specified?" error.
And yes, the file "loggedin.php" does exist where it should.
Any clues, help, or ideas, please.
===
case "validate":
$validate = mysql_query("SELECT * FROM members
WHERE username='{$_POST['username']}'
AND password = md5('{$_POST['password']}')
AND verified='1'
") or die (mysql_error());
if(mysql_num_rows($validate) == 1){
while($row = mysql_fetch_assoc($validate)){
$_SESSION['login'] = true;
$_SESSION['userid'] = $row['id'];
$_SESSION['first_name'] = $row['first_name'];
$_SESSION['last_name'] = $row['last_name'];
$_SESSION['email_address'] = $row['email_address'];
$login_time = mysql_query("UPDATE members
SET last_login=now()
WHERE id='{$row['id']}'");
}
header("Location: /loggedin.php");
} else {
myheader("Login Failed!");
echo '<p align="center">Login Failed</p>';
echo '<p align="center">If you have already joined '.
'our website, you may need to validate your email '.
'address. Please check your email for instructions.';
footer();
}
break;