php - Codeigniter - Pass array from controller, to view, and then to another controller -


i have controller handles adding of records database. these records require couple of passwords entered, "sign record". therefore, when form submitted, passed function in controller called "getsignatures." load view inputs passwords needed. users enter passwords "sign document". passed function in controller called "checksignatures," call function in model check passwords.

however, still need pass through or save data when form submitted.

i have tried using global variable save form data, when checksignatures function called, it's called through new controller. tried passing through form data view, saving in hidden input , passing through post can't save array in hidden input.

any ideas great, , sorry long-winded question.

try using sessions described here. in particular should @ codeigniter's flashdata.

sessions stored on server entirety of user's browsing session. let access data again. flashdata deleted after next page load don't stick around long.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -