Welcome Guest, Not a member yet? Register   Sign In
Validate input arrays
#1

Hi,

Can i know how to validate input arrays in Codeingiter 4?

PHP Code:
<?= form_dropdown(array('name' => 'upload_purpose[]''class' => 'form-control upload_purpose''options' => $cc_fileds)); ?>


PHP Code:
$rules = [
 
'upload_purpose[]' => ['label' => 'Upload Fields''rules' =>'required'],
]; 


I tried above an it doesn't work. it always displays the error message even though parameters were passed
Reply


Messages In This Thread
Validate input arrays - by ganeendra - 11-06-2020, 08:12 PM
RE: Validate input arrays - by InsiteFX - 11-07-2020, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB