Welcome Guest, Not a member yet? Register   Sign In
Store data data from multiple fields
#3

[eluser]Mangetsu[/eluser]
Something like this can handle both values in single input
Code:
<td>&lt;input type="text" name="feature[&lt;?php echo $feature-&gt;id; ?&gt;]" value="&lt;?php echo $feature-&gt;value; ?&gt;"/&gt;&lt;/td>
then
Code:
$features = $this->input->post('feature', TRUE);

foreach($features as $key => $value)
{
  echo "feature ID = $key ";
  echo "value = " . $value] . '<br>';
}
Didn't test it but should work...


Messages In This Thread
Store data data from multiple fields - by El Forum - 10-10-2013, 04:47 AM
Store data data from multiple fields - by El Forum - 10-10-2013, 09:17 AM
Store data data from multiple fields - by El Forum - 10-11-2013, 02:27 AM
Store data data from multiple fields - by El Forum - 10-12-2013, 02:00 AM
Store data data from multiple fields - by El Forum - 10-12-2013, 03:05 AM
Store data data from multiple fields - by El Forum - 10-12-2013, 03:31 AM
Store data data from multiple fields - by El Forum - 10-12-2013, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB