CodeIgniter Forums
App design: XHR forms - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: App design: XHR forms (/showthread.php?tid=12816)



App design: XHR forms - El Forum - 11-01-2008

[eluser]Crimp[/eluser]
Question about the following scenario:

1. One page form
2. Primary part of form submitted with POST
3. Parts of the form contains XHR to allow upload of multiple items/values in initial view

The XHR entries are mapped to the main record of the POST submit. In other words, the form is not submitted before the XHR values are inserted in the DB. There are of course many ways to accomplish this, but one concern is to keep the auto_increment value of the primary record an unbroken sequence for use in the URI (this can of course be changed to a sep. field).

What is your preferred way of handling such a case?