[eluser]edwin87[/eluser]
Hello CI,
I'm struggling for a while now with messages that has to be shown after a succesful submit.
So when i fill in a form with a title and some text. I press submit. The model and the controller handles the form. The form has to show a message if a submitted page is succesfully added. How do you do this?
I read something about setting some flash data.
Code:
$this->session->set_flashdata('item', 'value');
Actually i want to show a message for 1 or 2 seconds. After the message i want him to redirect to a defined page.
I'm also workin with jQuery. But i want this to work for both.
So can somebody help me with this?