Well, you asked so I'll tell you.
This is part of a function that will evaluate dynamically created forms. A good example is if you pull several records (say photos for example) from a database and each record has 5 fields to change. I want to the create SQL statements to the database for each record. Each group of elements for a record I refer to as a "formlet." there could be 1, could be more "formlets" on the form.
So you've got a 2-d array, fields x records. The way I do it is to have php generate a name for each field based on the unique id of the record, like this:
FIELD NAME:
f000395001 = photo #395 (justifed to 6 places), field #001 (let's say, Name)
f000395002 = photo #395, field #002 (Description)
f000395003 = photo #395, (date added)
f000396001
f000396002
f000396003
etc., etc...
I've already created something like this in ASP but it's too slow. It's taken some time to get used to curly braces and semicolons but I'm doing good. :-)
Sam Fullman
Compass Point Media