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? Link to comment https://forums.phpfreaks.com/topic/136255-solved-array-of-fields/ 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" /> Link to comment https://forums.phpfreaks.com/topic/136255-solved-array-of-fields/#findComment-710788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.