So I have a HTML table that has rows and columns that get created by a php loop from a database table. Inside one of the columns, I have inserted a textbox so that I user can input a value for that row.
Now, on the post, I need to grab the values for each of the textboxes.
I have tried the above to see if it returns anything and I get this:
Can anyone help me out here? I'm I approaching this the wrong way?
Thanks!
Code:
<td><input type="text" name="timein[]" id='<?php echo $ID;?>' /></td>
Now, on the post, I need to grab the values for each of the textboxes.
Code:
$timein = $this->input->post('timein');
foreach ($timein as $value)
{
echo $value;
}
I have tried the above to see if it returns anything and I get this:
Code:
Invalid argument supplied for foreach()
Can anyone help me out here? I'm I approaching this the wrong way?
Thanks!
