Skip to content
Advertisement

How to get insertBatch() with checkbox in codeigniter 4

How to get the checkbox data? This is my view

JavaScript

this is my controller

JavaScript

how to get the status if checked it get double array?

Advertisement

Answer

I assume this is a multi-item list with an item key. I assume $item[‘id’] is a unique key.

View

JavaScript

Controller

JavaScript

The final result image

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement