Currently I have a project I am working on. The page I am trying to develop is a custom user driven page.
basically the content goes like this
general user info(eg name, date, email etc)
blank div space to generate content with(this is used as a basis so i can set an incremental id
(product 1 with info(set size, set price, etc)
add a product button(then a 2nd,3rd or however many product will apear)
My question is. How would 1 go about using this info to send it via a php email. Would you use a for loop would you turn it into an array i have no idea where to start my current code is below.
<div class="addsection">this will be left blank </div>
<button id="addbutton" class="btn btn-default">Add a product</button>
<script>$('#addbutton').on('click', function () {
var count = $('div.addsection div').length, id = count + 1;
$('div.addsection').append('<div id="' + id + '">this is where my sourced content will go</div>');
event.preventDefault();
});</script>
Any help would be extremely appreciated. Thanks :)