Thanks for the reply, sorry its gone a bit over the top of me. What I showed is one row, its really more like
Code:
<tr>
<td><input type="text" placeholder="Giving" class="selector" name="giving2[]" autocomplete="off"/></td>
<td><input type="text" placeholder="Getting" class="selector" name="getting2[]" autocomplete="off"/></td>
</tr>
<tr>
<td><input type="text" placeholder="Giving" class="selector" name="giving2[]" autocomplete="off"/></td>
<td><input type="text" placeholder="Getting" class="selector" name="getting2[]" autocomplete="off"/></td>
</tr>
...
And I also have a javascript method where more rows with the same fields can be added, so I will never be sure as to the total number of rows. So what I have done is made it so all names are an array. The field inputed into these fields is text. The reason I used a foreach loop is because wouldnt I need to loop the array which holds my values, especially if I dont know how many there will be?
My overall aim is to take all the inputs from all the fields, and send them in an email. So, the values from row 1 will display first Giving[0] Getting[0], then row 2 etc. As I say though, I cannot do it like this because I dont know how many there will be.
Nick