Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Edit XML with PHP Re: Edit XML with PHP

#78172

yes, it does make some sense. I just have to figure out how to pass the veriables. my problem is, this is a dynamic form that you are able to add and remove field groups, as you can see in the image, so i am going to have to figure out how to have them always be:
title1, pricing1, desc1
title2, pricing2, desc2
title3, pricing3, desc3
title4, pricing4, desc4
title5, pricing5, desc5

etc.

because lets say the user removes the second box. then it would go:
title1, pricing1, desc1
title3, pricing3, desc3
title4, pricing4, desc4
title5, pricing5, desc5

not:
title1, pricing1, desc1
title2, pricing2, desc2
title3, pricing3, desc3
title4, pricing4, desc4
like it should.

then when I add a group, it would have to be the number after the last.

so everytime you add or remove a field group, jquery (or something) will have to rename all of the field attributes to be in order.
does that sound about right?

even once I get that in place, how will I tell it the right number of packages to save? (make sense?)