jordanwb Posted December 9, 2008 Share Posted December 9, 2008 I have a series of fields that are the same and need to be validated the same way. I remember that you can set the name of each input field in such a way that in the $_POST superglobal there'll be array of fields like so: $_POST['users'][0]['name'] $_POST['users'][1]['name'] etc. How do I do that? Quote Link to comment Share on other sites More sharing options...
jordanwb Posted December 9, 2008 Author Share Posted December 9, 2008 I figured it out, but there seems to be a limit, you can have only one set of square brackets: <input name="users[0]" type="text" /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.