<?php
$title = ":: Logged in";
$passwd = $_POST['password'];
if ($passwd == "asdfgh")
{
echo 'Your in the admin panel!';
}
else
{
$title = "WRONG!";
echo 'WRONG!!!';
}
?>
Question; why did you added $title at the second statement if you haven't added it on the first one? :O Like $title = "Welcome!".