$ix = $_POST['ix'];
if($ix == "1"){

yukardakini aşağıdakiyle değiştirrisen sorunun çözülür

if(isset($_POST['ix']) && $_POST['ix'] == "1"){