Looking but cant find the answer though Im sure Ive used this elsewhere in my program.
I am building a navigation form that allows a person to set the name of the navigation along with an optional subtitle and breadcrumb value.
These form inputs are created dynamically and appears like so:
<input name="menu[1][title]" value="Index" />
<input name="menu[1][subtitle]" value="Our home page" />
<input name="menu[1][crumb]" value="Home" />
<input name="menu[2][title]" value="Contact" />
<input name="menu[2][subtitle]" value="Get in touch" />
<input name="menu[3][crumb]" value="Contact" />
These form inputs are created in the format menu[ID][TYPE]. From there I will use PHP to update a database matching the menu ID property to the database table ID, and the column to the menu TYPE property.
Im just stumped on how to get the inputs and through Jquery/JSON send them to the PHP script. Mainly being that the ID numbers are going to be dynamically created. Just about to help my gf unlock the keys she locked in her car so I will post a code snippet when I get back.
Thanks for the feedback. After searching for a relatively simple way to achieve this Ive opted to use strings which just means that I have to update the code if I add a menu element at a later date.