Welcome Guest, Not a member yet? Register   Sign In
fetch values not correctly?
#1

Code:
I want to store checkbox value,two textbox value in array.

public function valinsert()
{
$certids = $this->input->post('certid');  
$nocs = $this->input->post('noc1');   
$amtt = $this->input->post('txt');

$result = array();
  foreach ($certids as $index=>$certid) 
  {
     $result[] = $certid . '_' . $nocs[$index] .'_' . $amtt[$index];
  }

but it displays
Code:
Array
(
   [0] => 1_2_1700
   [1] => 2_3_900
   [2] => 3_0_0
   [3] => 4_0_0
   [4] => 5_3_900
   [5] => 6_3_900
   [6] => 7_3_900
)
how to display those checked checkbox with corresponding row details. some times its working but most of the time return "o". how to solve this
Reply


Messages In This Thread
fetch values not correctly? - by kvanaraj - 01-31-2019, 03:10 AM
RE: fetch values not correctly? - by InsiteFX - 01-31-2019, 04:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB