Computer Science, asked by Genius2408, 1 year ago

How to define and a javascript array in codeigniter for textbox values?

Answers

Answered by mayankmhatre26p986vz
0

$post   =   $this-You should simplify your code like this


>input->post();              

$data['approvedhrs']    =   $post['approvedhrs'];

$data['approvedmins']   =   $post['approvedmins'];

print_r($data);

$result = $this->milestonemodel->approvedHrs($taskid,$data);

You should make sure $post['approvedhrs'] and $post['approvedmins'] do not have arrays. They could contain array when defined in the form like this

<input type='text' name="approvedhrs[]" />

<input type='text' name="approvedmins[]" />

https://stackoverflow.com/questions/20988292/update-textbox-value-which-are-in-loop-using-post-submit-codeigniter

you will get the furtuer information here


Similar questions