for ($i=0; $i< count($_POST['onay']); $i++ ): if($_POST['onay']=="1"): // işlemleriniz endif; endfor;