- Aug 26, 2001
- 13,941
- 1
- 0
particularly about the $_POST array, although it doesn't really make a difference.
Basically, I have a form with input fields created through a for loop. So they have names like opponent0, opponent1, opponent2, etc.
I tried checking these by creating another for loop which adds their values to a $query variable, but it won't accept the variables as indexes. It tries to read the variable name as the index.
Is there any way around this?
Basically, I have a form with input fields created through a for loop. So they have names like opponent0, opponent1, opponent2, etc.
I tried checking these by creating another for loop which adds their values to a $query variable, but it won't accept the variables as indexes. It tries to read the variable name as the index.
Is there any way around this?