Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9217147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:34:38+00:00 2026-06-18T02:34:38+00:00

i am trying to generate a multiple chechkbox in codeigniter which will allow to

  • 0

i am trying to generate a multiple chechkbox in codeigniter which will allow to send emails to the email selected from the checkbox.

The form_multiselect didnt help me …

Thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:34:39+00:00Added an answer on June 18, 2026 at 2:34 am

    Here’s some example code… don’t use in production, there’s only explanation how to proceed data / validation / view

    CONTROLLLER

        function test() 
      {
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
    
     $this->form_validation->set_rules('emailRecipient[]', 'User Mail', 'required');
    
      if ($this->form_validation->run() == FALSE)
            {
          $data['PreEmailRecipient'] = array(
                    'mail 1' => 'mail1@gmail.com',
                    'mail 2' => 'mail2@gmail.com',
                    'mail 3' => 'mail3@gmail.com',
                    'mail 4' => 'mail4@gmail.com',
                    'mail 5' => 'mail5@gmail.com',
                    'mail 6' => 'mail6@gmail.com',
                    'mail 7' => 'mail7@gmail.com',
                    'mail 8' => 'mail8@gmail.com',
                    'mail 9' => 'mail9@gmail.com'
                    );
                $this->load->view('test',$data);
            }
            else
            {
          foreach ($this->input->post('emailRecipient') as $key => $value)
          {
            echo $value.'<br />';
            //your code....   
          }      
            }
        }
    

    VIEW

    <?php echo validation_errors(); ?>
       <?php echo form_open('welcome/test');?>
          <?php foreach($PreEmailRecipient as $key => $value) : ?>
            <input type="checkbox" name="emailRecipient[]" value="<?php echo $value;?>">&nbsp;<?php echo $key;?><br />
          <?php endforeach;?>  
            <input type="submit" value="Submit" />
        </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to generate a checkbox list feeded by some records from a
I am trying to create a simple AS3 script which can generate multiple paragraphs,
I trying to generate an XML document which is around 23 to 30 MB,
I am trying to get SCons to generate multiple targets (number unknown directly in
I'm trying to implement a SessionState server to allow multiple web servers to share
I am trying to generate multiple barcode image files in symfony by looping. Here
I am trying to generate a variable that I could use to insert multiple
I am trying to generate a PDF using iTextSharp. It will consists of a
I'm trying to generate multiple permutations using this code: :- use_module(library(clpfd)). p(N, Indexes) :-
I'm trying to generate a line passing through multiple points. var line = d3.svg.line()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.