I\'m using CodeIgniter and I have a form with a checkbox that allows the user to check and remove their uploaded photo. In my controller I use if(isset($checked)
if(isset($checked)
Please write proper value in your checkbox :-
Write some value then check it :-
for e.g :
In php :-
if($checked == 1) { // do whatever u want }