Welcome Guest, Not a member yet? Register   Sign In
get value option in controllers
#5

Hiii, problem has been fixed

add more value for $v  in View
PHP Code:
$st $this->input->post('status');
$ui $this->input->post('user_id');
$v "";
if (
$this->input->post('date_range')) {
    $dr explode(' - '$this->input->post('date_range'));
    $v .= "&start_date=" $dr[0];
    $v .= "&end_date=" $dr[1];
    
$v .= "&status=" .$st;
    
$v .= "&user_id=" .$ui;


then in controlles, get value by method get
PHP Code:
$user_id $this->input->get('user_id');
$status  $this->input->get('status'); 

it work, only one $v send 4 value to controllers in function getrepairbyuser
Reply


Messages In This Thread
get value option in controllers - by datcanlong - 11-07-2019, 10:38 AM
RE: get value option in controllers - by Wouter60 - 11-07-2019, 12:48 PM
RE: get value option in controllers - by datcanlong - 11-08-2019, 03:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB