redirect() - 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: redirect() (/showthread.php?tid=15365) |
redirect() - El Forum - 02-02-2009 [eluser]NateL[/eluser] Is it possible to pass a variable with the redirect function? I have a function in my admin conroller called "insert()", which connects to a model and inserts the POST data. Is it possible to generate a message variable and pass that in with the redirect? for instance: Code: $message = "Your message was successfully entered!"; and in my view: Code: if (isset($message){ Or am I going about this the wrong way? Thanks redirect() - El Forum - 02-02-2009 [eluser]The Wizard[/eluser] hello, why not try this? http://ellislab.com/codeigniter/user-guide/libraries/sessions.html nice signature btw redirect() - El Forum - 02-02-2009 [eluser]NateL[/eluser] [quote author="herrkaleun" date="1233613759"]hello, why not try this? http://ellislab.com/codeigniter/user-guide/libraries/sessions.html[/quote] oh yeah! Flashdata %-P Quote:nice signature btwThanks Anyone is free to steal it and use it as they wish :cheese: |