I'm trying to create a interface with a conditional logic that will allow the webmaster to insert advertisments anywhere on the site. But before coding it, I need some advices from you :)
The forms are handled trough jquery & ajax. When the "add another ad" button is pressed a new form is created with jQuery. My question is how could I gather all the form input values into a single hidden input that would look like:
<input name="ad[]" type="hidden" value="homepage,after_article,4,visitors" />
I think this value would be easier for me to handle in PHP.

homepage,after_article,4,visitorswouldnt be betterfoo:homepage,bar:after_article,n:4,baz:visitors?