HTML Hızlı formu ile eleman çıkarmak için nasıl?

0 Cevap php

In a project I have to use HTML Quick forms to create elements. I have created checkbox element with name hobbies[]. When I the form is posted I do get the array of hobbies and their values and would display the same form again.

Now I want to remove those checkboxes which were not selected. Basically in HTML Quick forms you can use $form->removeElement('elementname'). But as the checkboxes are array, if i try to use the above code its removing only the first checkbox.

Seçili değil yalnızca onay kutularını kaldırmak için bir yolu var mı.

Ben açıkça izah umuyoruz. Eğer değilse lütfen bana bildirin, ben biraz daha ayrıntılı çalışacağım.

Thanks, Tanmay

0 Cevap