bory has asked for the wisdom of the Perl Monks concerning the following question:
And in an cgi script i want to print for each $idnew$n/$idold$ithe corresponding values from the textbox:..... print "<tr><td$idold[$i]</td<td><input type=textbox name=\"typeold\" > +</td></tr>"; .... print "<tr><td$idnew[$n]</td<td><input type=textbox name=\"typenew\" > +</td></tr>"; ......
It doesn't print $typeold$io( but it prints @typeold with the whole values if I do so ) Thanks for understanding me.my @idnew=param ('idnew'); my @idold=param ('idold'); my @typenew=param ('typenew'); my @typeold=param ('typeold'); for (my $eu=0;$eu<=(scalar(@idnew)/2-1);$eu++) { print "<h2>New$idnew[$eu]/$typenew[$eu]</h2>"; } for (my $io=0;$io<=(scalar(@idold)/2-1);$io++) { print "<h2>New$idold[$io]/$typeold[$io]</h2>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing an array
by castaway (Parson) on Mar 30, 2004 at 08:28 UTC | |
by bory (Beadle) on Mar 30, 2004 at 10:51 UTC | |
by Happy-the-monk (Canon) on Mar 30, 2004 at 11:58 UTC | |
|
Re: printing an array
by pelagic (Priest) on Mar 30, 2004 at 11:48 UTC |