These are the changes i've made to my code during my 1st post above.This is the part in javascript code that was changed:
PartText[0].name = 'partname[]'PartText[1].name = 'partnumber[]'PartText[2].name = 'version[]'
And this is the part in html/php code that was changed:
Part Name: <input type="text" class='bginput'name="partname[]" id="part1" value='<?php=$partname?>'/>Part Number: <input type="text" class='bginput' name="partnumber[]" id="part1" value='<?php=$partnumber?>'/>Version: <input type="text" class='bginput' name="version[]" id="part1" value='<?php=$version?>'/>
This is the code i've made also to get the value inside the array:
$partname=$_POST['partname'];$partnumber=$_POST['partnumber'];$version=$_POST['version'];
Primarily i have a set of 3 elements(partname,partnumber,version), then i added a button to add another set of 3 elements as many as i can. I have the submit button also to save and post all the values inputted from the set of 3 elements or another sets, all of them. Now, regarding the code above, whatever strings i am going to input to the set of elements(partname,partnumber,version) or to another set of elements, after i clicked submit button, only 1 set of 3 elements was save in the databse and another thing is that the string that was saved to each element in the database is "Array". That was also the string that is being outputted.Can you explain it to me why? maybe there is really something wrong with my code...