Ok so, I am building something for my employer for them to input products, they have very specific requirements. I have a form with dynamically generated fields like so... (obvi
Ok so, I have fixed it, with the help of you guys and the realization that i had been a little stupid and only edited the static part of the form to incorporate the dynamic key and not the ajax generated part which overwrites it.
foreach ($_POST['attribute'] as $key => $attributes){
echo $key.'+'.$attributes.'
';
}
Works perfectly. thanks for the tips guys.