dolflyer: array durch checkbox??

Hi Leute!

Also, ich hab ne Liste von Empfängern eines Newsletters.
Die Liste kommt durch eine Suche zustande, und jeder Eintrag hat ne eigene checkbox dabeistehn, wenn die aktiviert ist, soll diese person den newsletter bekommen.

ich hab quasi keine erfahrungen mit arrays...
am besten ich kopier mal meinen ansatz:

<form action="presend.php" method="post" name="presend" target="_self"><table width=635 border=0 cellspacing=0 cellpadding=0>
  <tr>
    <td width=53> </td>
    <td width=140 class=title2>Vorname</td>
    <td width=140 class=title2>Nachname</td>
    <td width=140 class=title2>email</td>
    <td width=140 class=title2>Gruppen</td>
  </tr>
  <tr>
    <td height="1" colspan=5 bgcolor=#333333><img src="../images/spacer.gif" width="1" height="1"></td>
  </tr>
  <?php do {
  $id = $row_list['id'];
  $vn = $row_list['vorname'];
  $ids = array($id);
  for($x=0;$x<count($ids);$x++){
     $tosend = $ids[$x];
  $tosend2 = array($tosend);
    }
  ?>

<tr>
  <td><div align=center><input name="tosend" type="checkbox" id="tosend" value="$id"></div></td>
    <td class=normtext><?php print "<a href='edit.php?&pid=$id' class='normlink'>$vn</a>";?></td>
    <td class=normtext><?php echo $row_list['nachname']; ?></td>
    <td class=normtext><?php echo $row_list['mobil']; ?></td>
    <td class=normtext>
 <?php
 $listgrp1 = $row_list['grp1'];
 $listgrp2 = $row_list['grp2'];
 $listgrp3 = $row_list['grp3'];
 $listgrp4 = $row_list['grp4'];
 $listgrp5 = $row_list['grp5'];
 $listgrp6 = $row_list['grp6'];
 if($listgrp1 == 1){ print "1, ";}
 if($listgrp2 == 1){ print "2, ";}
 if($listgrp3 == 1){ print "3, ";}
 if($listgrp4 == 1){ print "4, ";}
 if($listgrp5 == 1){ print "5, ";}
 if($listgrp6 == 1){ print "6, ";}?><br>
</td>
  </tr><?php } while ($row_list = mysql_fetch_assoc($list)); ?>
<tr>
     <td width=53> </td>
    <td width=140 class=title2> </td>
    <td width=140 class=title2> </td>
    <td width=140 class=title2> </td>
    <td width=140 class=title2>
 <input type="submit" name="Submit" value="Submit"></td>
</tr>
</table></form>

ich dachte mir, ich schick per formular die gesammelten id-nummern der jeweiligen datensätze in einem array weiter und verschick dann über die id der empfänger.
weiter als bis hier schaff ichs nicht, weil ich nicht weiß, wie ich
1.) herausbekommen, welche checkboxen angehakt wurden und
2.) ich keine ahnung hab, wie ich jetzt die daten des arrays weiterschicken kann um damit zu arbeiten.

vielen vielen dank für eure hilfe im vorraus!
beste grüße aus salzburg,
dolflyer

  1. hi,

    weiter als bis hier schaff ichs nicht, weil ich nicht weiß, wie ich
    1.) herausbekommen, welche checkboxen angehakt wurden und
    2.) ich keine ahnung hab, wie ich jetzt die daten des arrays weiterschicken kann um damit zu arbeiten.

    schau dir mal http://dclp-faq.de/q/q-formular-checkbox.html an.

    gruss,
    wahsaga

    1. hi wahsaga!

      superperfekt! Diese Hilfe hab ich gebraucht.

      Dankeschön aus salzburg,
      dolflyer