Hi,
I'm currently working with a html-form, and I've got a lot of variables to work through. Because the form is generated dynamicly, I don't know how many variables I'll get. My code is looking like this:
PHP Code:
if($test1==1){
...}
if($test2==1){
...}
if($test3==1){
...}
if($test4==1){
...}
if($test5==1){
...}
Could someone please help by tell me how to combine '$test' into a "double" variable, so it would somehow look like this:
PHP Code:
$count=1;
while(isset($test$count)){
if ($test$count==1){
....
}
$count++;
}
Thanks for your help.