Welcome Guest, Not a member yet? Register   Sign In
getting the values in form_input() and store the value in variable in the same page
#1

[eluser]nOsCiRe[/eluser]
I new to codeigniter hope you can help me guys, i want to get the value from one of my form_input() and i will store the value to a variable.

In my js

editisactive = $("#isactive"+$(this).closest('tr').attr('id')).val();

$('input[name = editisactive]').val(editisactive);

In my views

$editisactivehi = array
(
'name' => 'editisactive',
'value' => '',
'hidden' => 'true'
);
echo form_input(editisactivehi);

//im getting no data in this part hope you can help me. tnx in advance
$test = $this->input->post('editisactive');
echo $test.'good job';




Theme © iAndrew 2016 - Forum software by © MyBB