What I want to do is loop through a variang number of controls that all have the same prefix "select" but with a incrementing number on the end. and if it is there it will be = to "true" here is what I have so far:
for ($i = 0; $i < $howmanyfields; $i++) {
if ( "select" . $i == "true" ) {
print ( "Number $i is avalable"
}
}
but it wont recogine the ("select" . $i) as ($select1) I haev tried to put a \$ @ the front but still the same problem, any ideas?
for ($i = 0; $i < $howmanyfields; $i++) {
if ( "select" . $i == "true" ) {
print ( "Number $i is avalable"
}
}
but it wont recogine the ("select" . $i) as ($select1) I haev tried to put a \$ @ the front but still the same problem, any ideas?