codeigniter - Post values to controller from table rows that are created dynamically -
i using codeigniter project.
i have table rows added dynamically through jquery append.
so when click on button submit, post values rows values controller, not sure how that.
my table row this
<td> <input type="text" class="createwoblockbg big ui-autocomplete-input" name="basefabrics" id="basefabrics1" autocomplete="off"> </td>
i not want utilize ajax calls.. how pass many of inputs view controller?thanks in advance help.
if table rows
, mentioned submit button within form specify action
attribute of form controller want access values
and in controller can values follows
$value = $this->input->post('name_of_your_input');
considering input
$base_fabrics = $this->input->post('basefabrics');
if form action calling same controller method loaded view, can check click of submit button , fetch values
if ($this->input->post('name_of_submit_btn')) { $base_fabrics = $this->input->post('basefabrics'); }
edit: if inputs have same name improve name name="basefabrics[]"
when fetch value
$base_fabrics = $this->input->post('basefabrics');
$base_fabrics
array
codeigniter
No comments:
Post a Comment