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)
remove isset
isset
its because by default in your CI Controller you get input value using
$checked = $this->input->post('remove');
whether is has a value or not your variable now exist..