for ($nvar = 0; $nvar < 26; $nvar++) {
if ($FORM{'$nvar'}) {
$n_variables = "$n_variables|$nvar\*$FORM{'$nvar'}";
}
}
Basically I have $FORM{'1'} , $FORM{'2'} , etc.. I might want to change it to even higher than 25 so I don't want to have to repeat the code over and over. The code i've given doesn't work because $FORM{'$nvar'} is not recognised. Can someone tell me a way to do this?
Thanks,
-blitzer
if ($FORM{'$nvar'}) {
$n_variables = "$n_variables|$nvar\*$FORM{'$nvar'}";
}
}
Basically I have $FORM{'1'} , $FORM{'2'} , etc.. I might want to change it to even higher than 25 so I don't want to have to repeat the code over and over. The code i've given doesn't work because $FORM{'$nvar'} is not recognised. Can someone tell me a way to do this?
Thanks,
-blitzer