4 months ago

Checkbox Inserts

Posted 4 months ago by artisticre

I have three checkboxes below. And then I have what I think the input into the database should be but its not working. I don't think I have it right. Can someone help please? Any number can be checked except none of them. At least one needs to be checked.

        <input type="checkbox" name="clergy[]" value="Spiritual Director" />
        <input type="checkbox" name="clergy[]" value="Lay Team" />
        <input type="checkbox" name="clergy[]" value="Wherever Needed" />

            $teamapp->clergy = $request->input('clergy[]');

Please sign in or create an account to participate in this conversation.