bory has asked for the wisdom of the Perl Monks concerning the following question:
I do thisSubject checkbox yes Data checkbox yes ....etc
I know that is not a very good way to create an html table but I don't understant way it's printing every row twice, when i want to print only once. If i have 2 checkboxes i want them on the same row not each on different row. I don't know how to concat the $new string with every element of the array @ddts. Thank you.my $d=scalar(@b)/3 # @b is the array with the content of the file for (my$i=0; $i<=$#ddts; $i++){ #@ddts is the array in which is the result of an html form for (my $index=0;$index<=($d-1);$index++) {my $x=(($#b-1)-$index*3);# i calculate the position of the second wor +d from each row, there is the html type i need $new="<td><input type=\"$b[$x]\" name=\"$b[$x-1]\"></td>"; print "<table><tr><td>$ddts[$i]</td>$new</tr></table>"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: concatening strings
by hardburn (Abbot) on Nov 07, 2003 at 17:05 UTC | |
by Anonymous Monk on Nov 08, 2003 at 14:20 UTC | |
|
Re: concatening strings
by asarih (Hermit) on Nov 07, 2003 at 17:01 UTC | |
|
Re: concatening strings
by ChrisR (Hermit) on Nov 07, 2003 at 16:50 UTC | |
by bory (Beadle) on Nov 07, 2003 at 16:56 UTC | |
by ChrisR (Hermit) on Nov 07, 2003 at 17:01 UTC | |
| |
|
(shockme) Re: concatening strings
by shockme (Chaplain) on Nov 07, 2003 at 17:19 UTC |