Hello,
As has been mentioned before, I'm working on a website for my brother.
I use this
to allow the user to add fields.
This yields variables of the form field1, field2, ...
However, it is possible to remove fields, so I basically have a number of field variables, but the numbering is not necessarily consequtive.
What is the best way to read these in PHP? (I'm a PHP newbie)
On could make a loop that goes from 1 to 1000 (highly unlikely the user will add that much fields ), and then check to see which fields exist.
But can it be done more efficiently?
Jörg
As has been mentioned before, I'm working on a website for my brother.
I use this
to allow the user to add fields.
This yields variables of the form field1, field2, ...
However, it is possible to remove fields, so I basically have a number of field variables, but the numbering is not necessarily consequtive.
What is the best way to read these in PHP? (I'm a PHP newbie)
On could make a loop that goes from 1 to 1000 (highly unlikely the user will add that much fields ), and then check to see which fields exist.
But can it be done more efficiently?
Jörg
Comment