Welcome Guest, Not a member yet? Register   Sign In
How To Add Many Identical Fields Into a Form for Submission
#4

[eluser]vincej[/eluser]
OK - I have the ID's coming in, in the correct spot - my bad !

Code:
<tr align="center">
<td width="100" align="center">&lt;?php echo  $item['locationid']. form_hidden('locationid[]', $item['locationid']);?&gt;</td>
   <td width="100" align="center">&lt;?php $data = array('name'=>'location', 'size'=>20,'value' => $item['location']); echo form_input($data); ?&gt;</td>
   <td width="100">&lt;?php $data = array('name'=> $theIDs[0],'size'=>15,'value' =>(strftime("%d %b %Y",$theDates[0]))); echo form_input($data);?&gt;</td>
   <td width="100">&lt;?php $data = array('name'=> $theIDs[1],'size'=>15,'value' =>(strftime("%d %b %Y",$theDates[1]))); echo form_input($data);?&gt;</td>
   <td width="100">&lt;?php $data = array('name'=> $theIDs[2],'size'=>15,'value' => (strftime("%d %b %Y",$theDates[2]))); echo form_input($data); ?&gt;</td>
   <td width="100">&lt;?php $data = array('name'=> $theIDs[3],'size'=>15,'value' => (strftime("%d %b %Y",$theDates[3]))); echo form_input($data);?&gt;</td>
   <td width="150"> &lt;?php echo anchor('admin/pickup_detail/deletelocation/'. $item['location'], 'Delete');?&gt;</td>
  
</tr>



Now I have to fix my model.


Messages In This Thread
How To Add Many Identical Fields Into a Form for Submission - by El Forum - 03-22-2012, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB