Welcome Guest, Not a member yet? Register   Sign In
problem with multiple checkboxs
#1

[eluser]dinisptc[/eluser]
problem with multiple checkboxs


this is the view

Code:
<?php
                $clientid=$this->users_model->find_by_user_id_client_id($this->session->userdata('user_id'));
                $users=$this->users_model->listar_users($clientid);
                foreach($users as $urow)
                {  //print_r($urow);?>

                      
                  &lt;input type="checkbox" name="user[]" value="&lt;?php echo $urow['id'] ?&gt;"&gt; User&lt;?php echo $urow['id']; ?&gt;   &lt;?php echo $urow['email']; ?&gt; &lt;?php echo $urow['first_name']; ?&gt; &lt;?php echo $urow['last_name']; ?&gt;  <br>

                &lt;?php } ?&gt;


on the controller when i do var_dump($this->input->post('user'));
i get this :
bool(false)


thanks
#2

[eluser]dinisptc[/eluser]
$this->load->library('form_validation');
$this->load->helper('string');

i was missing string helper




Theme © iAndrew 2016 - Forum software by © MyBB