|  Nieuw lid |  | Deze aangevinkte checkboxes worden nu op de volgende pagina netjes getoond 
 <?php
 if (isset($_POST["check"])) {
 $artikels=$_POST["check"];
 # controleer of meegestuurde artikelnummer wel beschikbaar is in de webservices output
 foreach ($ritnummers["artikelgegevens"] as $rit_key=>$rit_arr) {
 if (in_array($rit_arr->artnr,$artikels)) {
 
 print '<tr>';
 print '<td align="center">'.$rit_arr->artnr.'</td>';
 print '<td align="center">'.$rit_arr->artomschr.'</td>';
 print '<td align="center">'.$rit_arr->geleverd.'</td>';
 
 print '<form action="manco_verzenden.php" method="POST" enctype=multipart/form-data>';
 print '<td align="center"><select class="plaats" name="keuze[]"><option>Ja</option><option>Nee</option></select></td>';
 print '<td align="center"><input class="plaats" type="text" name="manco" size="5"/></td>';
 print '<input type="hidden" name="land" value="'.$_POST["land"].'">';
 print '<input type="hidden" name="ordernr" value="'.$_POST["ordernr"].'">';
 print '<input type="hidden" name="check[]" value="'.$verzamelfoutformulier->artnr.'">';
 
 }
 }
 
 De vraag hoe ik deze getoonde checkboxes op mijn mail kan krijgen, ik heb geprobeerd maar dat lukt mij niet kan iemand mij helpen?
 Hieronder is de verzend script:
 
 <?php
 print '<fieldset>';
 print '<legend  align="center" style="cursor:hand;"><H1>Manco melding</H1></legend>';
 if( $_SERVER['REQUEST_METHOD'] == "POST" ) {
 
 
 ini_set("soap.wsdl_cache_enabled", 0);
 $webservice_server = "";
 $webservice_connection_string = "";
 $client = new SoapClient( $webservice_connection_string, array( 'soap_version'   => SOAP_1_1 ) );
 $ritnummers = $client->verzamelfoutformulier($_POST["land"], $_POST["ordernr"]);
 
 
 print '<table align="center" cellspacing="2" cellpadding="2" width="50%"  bgcolor="#cccccc">';
 print '<caption><H2>Bestelde artikelen</H2></caption> ';
 print '<tr>';
 print '<th>Artikelnummer</th>';
 print '<th>Artikelomschrijving</th>';
 print '<th>Aantal</th>';
 print '<th>Herlevering</th>';
 print '<th>Manco</th>';
 print '</tr>';
 
 
 if (isset($_POST['Verzenden'])) {
 
 
 
 
 foreach ($_POST["check"] as $rit_arr) {
 
 print '<tr>';
 print '<td align="center">'.$rit_arr->artnr.'</td>';
 print '<td align="center">'.$rit_arr->artomschr.'</td>';
 print '<td align="center">'.$rit_arr->geleverd.'</td>';
 print '<td align="center">'.$_POST['keuze'].'</td>';
 print '<td align="center">'.$_POST['manco'].'</td>';
 
 }
 
 print '</table>';
 print '<td></br></td>';
 print '<table align="center" cellspacing="2" cellpadding="2" width="50%"  bgcolor="#cccccc">';
 print '<tr>';
 print '<th align="left">Afzender:</th>';
 print '<td>'.$_POST['email'].'</td>';
 print '</tr>';
 if(empty ($_POST['email']))
 {
 print '<td><font color=red><b>Dit veld is verplicht! De mail is niet verzonden</font></td>';
 $fout = true;
 }elseif(!ereg("^[_a-zA-Z0-9-]+(\.[*@([a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$", $_POST['email'])){
 print '<td><font color=red><b>Voer alstublieft een geldig e-mail adres in.</font></td>';
 
 $fout = true;
 
 print '<td></br></td>';
 }
 
 if($fout == false) // Als er niks fout is (alles is dus netjes ingevuld)
 {
 
 
 $onderwerp= "Manco melding voor Klantnummer:".$ritnummers[klantgegevens][0]->klantnr."\n";
 $ontvanger= "@.com";
 $afzender = $_POST['email'];
 $mail_body= "";
 
 foreach ( $_POST['check']as $rit_arr) {
 $mail_body.='
 <table align=center cellspacing=2 cellpadding=2 width=50%  bgcolor=#cccccc>
 <caption><H2>Besteld artikel</H2></caption>
 <tr>
 <th align=left>Artikelnummer:</th>
 <td align=left>'.$rit_arr->artnr.'</td>
 </tr>
 <tr>
 <th align=left>Artikelomschrijving:</th>
 <td align=left>'.$rit_arr->artomschr.'</td>
 </tr>
 <tr>
 <th align=left>Aantal:</th>
 <td align=left>'.$rit_arr->geleverd.'</td>
 </tr>
 <tr>
 <th align=left>Herlevering:</th>
 <td align=left>'.$_POST['keuze'].'</td>
 </tr>
 <tr>
 <th align=left>Manco:</th>
 <td align=left>'.$_POST['manco'].'</td>
 </tr>
 <tr>
 <th align=left>Manco:</th>
 <td align="left"><input type="text" name="manco" size="5" /></td>
 </tr>
 <tr>
 <th align=left>Getelde voorraad:</th>
 <td align="left"><input type="text" name="getelde" /></td>
 </tr>
 <tr>
 <th align=left>Locatie:</th>
 <td align="left"><input type="text" name="locatie" /></td>
 </tr>
 <tr>
 <th align=left>Datum:</th>
 <td align="left"><input type="text" name="datum" /></td>
 </tr>';
 }
 $mail_body.='</td></tr>
 </table>
 <table align=center cellspacing=2 cellpadding=2 width=50%  bgcolor=#cccccc>
 <caption><H2></H2></caption>
 <tr>
 <th align=left>Afzender:</th>
 <td align=left>'.$_POST['email'].'</td>
 </tr>
 </table>
 </html></body>
 <HR><Br>';
 
 $fout = false;
 
 $headers = "From: <$afzender>\r\n";
 $headers .= "Cc: <>\r\n";
 $headers .= "Return-Path: Mail-Error <$ontvanger>\r\n";
 $headers .= "Reply-To: $afzender <$ontvanger>\r\n";
 $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
 
 
 
 
 ini_set("SMTP","");
 
 $verstuurmail = mail($ontvanger, $onderwerp, $mail_body, $headers);
 if($verstuurmail)
 {
 
 print '<td>De mail is succesvol verzonden naar: '.$ontvanger.'.</td>';
 
 }else { print '<td align="left">De mail is niet verzonden. Informeer <b>'.$ontvanger.'</b> voor verdere hulp en informatie.</td>';
 
 }
 
 print '</td></tr>';
 print '</table>';
 print '</form>';
 print '</fieldset>';
 }
 }
 }
 
 
 ?>
 
 Manco veld en keuzevakje worden wel getoond, maar alle met hetzelfde waarde van de laatste toch als ik [] dit gebruik.
 |