<? } if (!isset($caad)) {
header("Location: index.php");
}?> <!-- buraya kadar -->

birde böyle dene