header("Location: index.php");
popr. pokud jiz existuje hlavicka souboru vvypsat script echo "<script> window.location.href = \"index.php\"; </script>";
header("Location: index.php");
popr. pokud jiz existuje hlavicka souboru vvypsat script echo "<script> window.location.href = \"index.php\"; </script>";