So my intention is as follows:
- Present a form (~the view) to be filled out: (Book request details)
- Display the results for review, after some other background work has been done (looking up the author and genre etc)
- have the user "approve"
Now normally, I use CodeIgniter's form validation flow as follows:
- in the Controller, the first check is whether the form is valid (e.g. filled in the title?)
- if that's good, then do whatever next, usually display a success form.
But that only allows two views.
The problem is that the third form being submitted is not the same as the first/second and so cannot be treated in the same controller method.
The problem is this: Now that the user has "approved", I have a couple of data elements to send on. So I'd have to bury them as hidden fields in the third view so they can be POSTed to the final method. Am I making sense?