$rules_array = array(
'firstName'=>array('type'=>'string', 'required'=>true, 'min'=>2, 'max'=>30),
'lastName'=>array('type'=>'string', 'required'=>true, 'min'=>2, 'max'=>30),
'postcode'=>array('type'=>'string', 'required'=>true, 'min'=>5, 'max'=>10),
'profileText'=>array('type'=>'string', 'required'=>true, 'min'=>5, 'max'=>350)
);
The last line was missing min and was written like this:
'profileText'=>array('type'=>'string', 'required'=>false, 'max'=>350)
I changed it to true and added the min back in. The profile text isn't required so how would I write it
to not be required?
It cleared those 2 errors, now I'm getting error2.
Now off to see if I can figure these out.
Thanks a ton for your help!