i am creating a page in which user enters the id,name,address and he enters his family detail's below selecting relation and name of person
if he wants to add more personal details he can click on add more buttton will give the new cloned row
now i want to store the details
1> how can i identify that how many relations user has selected ?
2> how can i save these relations , by identifying the details fields
i tried to save relations in table but it creats one record and save with comma ( , ) seperator and just creates one record even if i have more than one relation created
pls help me out
thanks in advance