Travolds
31-01-2005, 13:43
hallo,
ich hab folgendes vor:
eine Tabelle (HTML) mit mehreren Zeilen.
in jeder zeile
<table>
<tr>
<td><input type=text name=name[] value="auto"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
<tr>
<td><input type=text name=name[] value="bus"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
<tr>
<td><input type=text name=name[] value="bahn"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
</table>
annahme:
es wird nun "auto" und "bahn" aktiviert
in php dann:
$Name = $_REQUEST['Name'];
$AddBox = $_REQUEST['check'];
reset($Name);
reset($AddBox);
print "Data:<br>============<br><br>";
$nI = 0;
$LineCount = count($FileName);
for ($nI = 0; $nI < $LineCount; $nI++) {
print "<br>Etappe $nI";
print "<br>Name: $Name[$nI]";
print "<br>check: $AddBox[$nI]";
if ($AddBox[$nI] == 0) {
print "nicht markiert<br>";
}
}
das problem ist ja nun, dass das array AddBox nur 2 statt 3 Werte besitzt. Meine Frage nun:
Wie kann man das gescheiter machen?!? :confused:
Erreichen möchte ich etwas ähnliches, wie man es schon von GMX her kennt, mails markieren und dann die markierten einträge löschen.
hab schon sufu und etliche boards durchsucht aber anscheinend nicht die richtigen suchbegriffe gefunden.
hat da jemand ne idee? :rolleyes:
wäre für jede hilfe dankbar.
lg :travolds
ich hab folgendes vor:
eine Tabelle (HTML) mit mehreren Zeilen.
in jeder zeile
<table>
<tr>
<td><input type=text name=name[] value="auto"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
<tr>
<td><input type=text name=name[] value="bus"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
<tr>
<td><input type=text name=name[] value="bahn"></td>
<td><input type="checkbox" name="check[]" value="1">
</tr>
</table>
annahme:
es wird nun "auto" und "bahn" aktiviert
in php dann:
$Name = $_REQUEST['Name'];
$AddBox = $_REQUEST['check'];
reset($Name);
reset($AddBox);
print "Data:<br>============<br><br>";
$nI = 0;
$LineCount = count($FileName);
for ($nI = 0; $nI < $LineCount; $nI++) {
print "<br>Etappe $nI";
print "<br>Name: $Name[$nI]";
print "<br>check: $AddBox[$nI]";
if ($AddBox[$nI] == 0) {
print "nicht markiert<br>";
}
}
das problem ist ja nun, dass das array AddBox nur 2 statt 3 Werte besitzt. Meine Frage nun:
Wie kann man das gescheiter machen?!? :confused:
Erreichen möchte ich etwas ähnliches, wie man es schon von GMX her kennt, mails markieren und dann die markierten einträge löschen.
hab schon sufu und etliche boards durchsucht aber anscheinend nicht die richtigen suchbegriffe gefunden.
hat da jemand ne idee? :rolleyes:
wäre für jede hilfe dankbar.
lg :travolds