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

[eluser]rwestergren[/eluser]
To have an array with the same name posted to your controller, name your inputs like this:

Code:
<td width="100" align="center">&lt;input type="text" name="location[]" value="Collingwood" size="20"  /&gt;&lt;/td>

Notice the "name." Also, you shouldn't read your post values directly in your model. Rather, you'd want to process them in the controller and send them to the model as a parameter.


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



Theme © iAndrew 2016 - Forum software by © MyBB