CodeIgniter Forums

Full Version: App design: XHR forms
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?