Thread Problem mit Schleife (19 answers)
Opened by anamollo4music at 2013-03-19 20:06

Gast wer
 2013-03-19 22:14
#166433 #166433
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
my $script_name=$ENV{SCRIPT_NAME} || $0;

# ...

print qq(<form action="$script_name"><table>\n);
my $i=0;
while ( my ($idSensoren, $Beschreibung) = $select->fetchrow_array() )
{
  print << EOHTML;
  <tr>
    <td>$Beschreibung</td>
    <td><input type="text" size="10" name="beschreibung.$i"></td>
  </tr>
EOHTML
  $i++;
}
print "</table></form>\n";

#...

Last edited: 2013-03-19 22:17:00 +0100 (CET)

View full thread Problem mit Schleife