Giriş sonrası sorguda header("location: index.php"); adı altında bir alert echo "<script>alert('Giriş başarılı');</script>"; yapabilirsiniz.