We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to Ensure minimum one Check box been Checked from a group of check box

Development and Programming

fnbhns's avatar
fnbhns
22 posts
11 years ago
fnbhns's avatar fnbhns

Dear Friends,

I am validaitng form in Codeigniter, I have 5 check box with 5 different name.

**** How can i ensure that at least one check box is checked from this 5 checkbox. **** If not Checked, how can i set the error message at

set_message(' ',' ')

Check Boxs

$data['M01'] = $this->input->post('M01');
            $data['M02'] = $this->input->post('M02');
            $data['M03'] = $this->input->post('M03');
            $data['M04'] = $this->input->post('M04');
            $data['M05'] = $this->input->post('M05');

Highly expecting your support….!!!, Thanking you in advance.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.