Skip to content
Advertisement

How to retrieve the array values from multiples checkbox?

How to retrieve the array values from multiples checkbox? I have problem when I retrieve value array and echo the value. I get this error

Severity: Warning
Message: in_array() expects parameter 2 to be array, string given
Filename: page/update.php.

Please, could you help me again? Thank you.

You find three files: View, Model and Controller. Please check where I wrong…

UPDATE.PHP:

JavaScript

PAGE_CONTROLLER.PHP

JavaScript

PAGE_MODEL.PHP

JavaScript

Advertisement

Answer

in your you view,

JavaScript

change to :

JavaScript

in model :

JavaScript

change to :

JavaScript

please update if you getting error, tq

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