session_start();
if($kadi == $kayit["kadi"] && $sifre == $kayit["sifre"])// koşul sağlıyorsa
{
$_SESSION["ad"]=$kayit["ad"]." ".$kayit["soyad"];
header("Refresh: 2; url=index.html");
}
else //koşul sağlamıyorsa
{
header("Location: http://www.google.com.tr");
}php header komutu çalışmaz ise javascript ile yönlendirme yapın.