Jump to content

[SOLVED] array of fields


jordanwb

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.