How to send my input with mail in PHP
<p>I have 2 problems:</p>

<ol>
<li>He doensn't send the name that I put into the form.</li>
<li>He only sends the last thing that I have put in as product and the amount.</li>
</ol>

<p>e.g.: If I put in <code>Naam: TOM, Productnaam: Zwart 26, aantal: 4</code>, then I click <code>toevoegen</code>, it appears. Then I put in <code>Naam: TOM, Productnaam: Zwart 11 , aantal : 5</code>, and click <code>toevoegen</code> again, it appears beneath the other order. Then when I send it , everything goes well but when I see my mail this is what I get : </p>

<p><code>Naam: 5 x Zwart 11</code></p>

<p>Any help with these problems?</p>

<pre><code> &lt;?php
    include "authenticatie1_p88";
    ?&gt;
    &lt;?php

    ini_set("SMTP", "smtp.olvgroeninge.be");
    ini_set("smtp_port", 25);
    ini_set ("sendmail_from", "johan.dejonckheere@sintamandscollege.be");
    session_start();

    // Toevoegen
    if( isset( $_GET['ADD'] ) &amp;&amp; ereg('^[1-9][0-9]*$', $_GET['aantal'])) {
    $_SESSION['winkelwagen'][$_GET['ID']] = $_GET['aantal'];}

    // Verwijderen
    if( isset( $_GET['DEL'] ) ) {
    unset($_SESSION['winkelwagen'][$_GET['ID']]);}

    // Alles verwijderen
    if( isset( $_GET['EMP'] ) ) {
    unset($_SESSION['winkelwagen']);}

    // Laat lijst zien
    if( isset( $_SESSION['winkelwagen'] ) ) {
    foreach ( $_SESSION['winkelwagen'] as $key=&gt;$val ) {
    echo "$val x $key&lt;br&gt;";}}

    //Verzend de bestelling naar het emailadres
    if( isset( $_GET['VER'] ) ) {
    $boodschap2 = print_r( $key, true );
    $boodschap = "Naam: ".$_GET["naam"]."$val x $key";
        mail("nielbutaye@gmail.com","Uw inkt bestelling", $boodschap);
        echo "Uw gegevens zijn verstuurd";}
    ?&gt;
    &lt;form&gt;&lt;table width="200" border="0" align="center"&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;img src="images/hewlett-packard-51626ae-hp-26-hp51626a.jpg" width="350" height="350" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;img src="images/hewlett-packard-c4810a-hp-11-hpc4810a.jpg" width="350" height="350" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;img src="images/intktpatroona.jpg" width="400" height="400" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Product: Zwart 26&lt;/td&gt;
        &lt;td&gt;Product: Zwart 11&lt;/td&gt;
        &lt;td&gt;Product: Gekleurd 57&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;

      &lt;p&gt;Naam: 
      &lt;input type="text" name="naam" value="&lt;?php echo $_POST["naam"] ?&gt;"&gt;&lt;br&gt;
        Product:
      &lt;input type="text" name="ID"&gt;&lt;br&gt;
        Aantal:
      &lt;input type="text" name="aantal"&gt;&lt;br&gt;
      &lt;input type="submit" name="ADD" value="Toevoegen"&gt;
      &lt;input type="submit" name="DEL" value="Verwijderen"&gt;
      &lt;input type="submit" name="EMP" value="Legen"&gt;
      &lt;input type="submit" name="VER" value="Verzenden"&gt;
      &lt;/p&gt;
    &lt;/form&gt;
</code></pre>
