Jump to content

Array name attributes


klepec

Recommended Posts

Is there anything wrong if I name html array names (for later php use) like that: name="pic[0]", name="pic[1]", name="pic[2]" instead of just setting all names to: name="pic[]"?

 

I am using jquery validate plugin so i need unique field names, otherwise only first element with the given name gets validated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/263557-array-name-attributes/
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.