if ($kayıt) { //echo "kayıt başarılı"; Header("Location:*****.php"); exit; } else { //echo "kayıt başarısız"; Header("Location:*****.php"); exit; }