I made a form in which the user can clone/duplicate a input field with JQuery for adding more informations. The problem is just the last cloned input is available in the sent mail.
I tried with PHP something like this:
$product = "";
$product.= $_POST['product'] .= "\t amount".$trenner.$_POST['amount'] .= "\t price".$trenner.$_POST['price']."€";
But it doesn't work.
Jquery:
var products = $(".products").clone();
var clonedRow = products.clone().insertAfter(".products:last").find(":input").val(this.value ).end();
//ajax
console.log(products,clonedRow,$('[name="Product"]', clonedRow))