No input file specified?

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 ‘

Login Failed

echo '

If you have already joined '.
'our website, you may need to validate your email '.
‘address. Please check your email for instructions.’;

Have you read the documentation on header()?

"Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. "

See the documentation for an example of how to do this correctly:

:cool: Perl / MySQL / HTML+CSS

FYI – The solution to my problem:
There was nothing wrong with the code posted in my initial post.
The problem was in the called “login_form.html” doc, which had the following code:

Palun Logi sisse

Note that I had a leading dash on the form action POST to "/login.php"
This doesn’t work! I removed the backslash and I was in business!

Thanks for the help anyway. I did hardcode the absolute URI in on the header() just to be sure, and that works fine.

I really have to stop working on this stuff at midnight (^_^)

Absolute URI?
Snap, I should change that.

This was even helpful to me!