Welcome Guest, Not a member yet? Register   Sign In
Easy Checkbox Update

By manipulation, I mean that someone could create their own new form, which has inputs missing, or extra inputs.

if (!isset($inputData['user_status']) || $inputData['user_status'] != "1" )
            $inputData['user_status'] = "0";

This is the code I ended up going with. Wanted to add that || extra check. Seems to work now.

I am having a similar problem
how do you tell the difference between submitting the form with out changing the check_box (it is unchecked) but changing another part of the form
and un_checking the check box
in both cases the nothing is posted for the check box
may be I am overthinking this
any suggestions

I was over thinking it
it is not a problem

Theme © iAndrew 2016 - Forum software by © MyBB