PHP array post to MySQL?

PHP array post to MySQL?

Hi!
I've created a dynamic form that can be cloned via jQuery. I'm trying to figure out how to submit the cloned child elements into MySqL using PHP. Can someone help me out with the following form?

Thanks in advance,
Jack
  1. <form name="TimeSheetForm" action ="include/process.php" method ="post" onsubmit="return validateForm()" >
  2. <fieldset id="timesheetDetails">
  3. <legend class="legend">MyTimesheet</legend>
  4. <div class="form">
  5. <ul class="replica">
  6. <li><label class="inside">Date:</label></li>
  7. <li><input type="text" class="date" name="item[][dateofwork]" id="datepicker" style="width:80px;"/></li>
  8. </ul>
  9. <ul class="replica">
  10. <li><label class="inside">Team:</label></li>
  11. <li><input type="text" class="team" name="item[][team] maxlength="3" style="width:40px;"/></li>
  12. </ul>
  13. <ul class="replica">
  14. <li><label class="inside">Status:</label></li>
  15. <li><input type="text" class="status" name="item[][status] maxlength="30" style="width:100px;"/></li>
  16. </ul>
  17. <ul class="replica">
  18. <li><label class="inside">Project Name:</label></li>
  19. <li><input type="text" class="project_name[]" name="item[][project_name] maxlength="60" style="width:240px;"/></li>
  20. </ul>
  21. <ul class="replica">
  22. <li><label class="inside">Hrs:</label></li>
  23. <li><input type="text" class="hours" name="item[][hours] maxlength="2" style="width:30px;"/></li>
  24. </ul>
  25. <ul class="replica">
  26. <li><label class="inside">Min:</label></li>
  27. <li><input type="text" class="minutes" name="item[][minutes] maxlength="2" style="width:30px;"/></li>
  28. </ul>
  29. <ul class="replica">
  30. <li><label class="inside">Notes (255 characters):</label></li>
  31. <li><input type="text" class="text" name="item[][notes] maxlength="255" style="width:240px;"/></li>
  32. </ul>
  33. </div>
  34. </fieldset>
  35. <br />
  36. <div id="formbuttons">
  37. <input type="submit" class="button" id="TimeSheetSubmit" value="Submit" />
  38. </div>
  39. </form>