![]() |
passing data to different controllers - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: passing data to different controllers (/showthread.php?tid=58196) |
passing data to different controllers - El Forum - 05-23-2013 [eluser]codecombustor[/eluser] I want to pass a variable data $id to 3 different forms back to back....but if i pass it normally through url then it changes frequently during form posts, uploads and pagination..........any idea guys?? passing data to different controllers - El Forum - 05-23-2013 [eluser]CroNiX[/eluser] So when they submit form 1 and your controller processes it, stick the ID in a hidden field on form 2 so it will pass to form 3. Or use sessions or something. passing data to different controllers - El Forum - 05-23-2013 [eluser]codecombustor[/eluser] I've used sessions....i don't know if it's a best practice but it's working fine for now.. Anyways thanks for the reply |