[BusyBox] httpd CGI Forms Parameter Names
Jean Wolter
jw5 at os.inf.tu-dresden.de
Thu Sep 11 08:55:51 UTC 2003
Kianusch Sayah Karadji <kianusch at sk-tech.net> writes:
> > Note that if you use variable_1 variable_2 it would be easy enough to
> > convert them to arrays in your cgi shell script.
>
> Nope - I don't agree ... :-)
>
> At least not with the included shell in busybox (ash).
>
> I did not find a way to construct "dynamic variable names", like ...
>
> variable_1=1
> variable_2=2
for i in 1 2 ; do eval "echo \$variable_$i"; done
regards,
Jean
More information about the busybox
mailing list