Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Possible duplicate of: stackoverflow.com/questions/2627813/… Commented Apr 19, 2013 at 7:38
  • Since you want to use jQuery/JSON to send the data to PHP I'm guessing you'll be using AJAX? jQuery's .ajax()'s data property is JSON, and you'll need to recreate the multidimensional array in here, before sending it to PHP. Commented Apr 19, 2013 at 7:42
  • You probably don't need to but it may be simpler to squeeze all the data into one field like so <input name="menu[]" value="1|Index|Our home page|Home" />, then separate it out server-side with PHP's explode(). This guarantees that all related data stays together. Commented Apr 19, 2013 at 7:48