Welcome Guest, Not a member yet? Register   Sign In
Simple question about displaying errors/messages
#5

[eluser]gigas10[/eluser]
On every page I have this code.
Code:
<?php if($this->session->flashdata('msg')){
    echo $this->session->flashdata('msg');
} ?>

Then whenever I want to set a message

Code:
$this->session->set_flashdata('msg', '<div id="success-msg">Issue Added</div>');

or

$this->session->set_flashdata('msg', '<div id="error-msg">ERROR: Issue already in system</div>');


Messages In This Thread
Simple question about displaying errors/messages - by El Forum - 07-17-2010, 03:35 AM
Simple question about displaying errors/messages - by El Forum - 07-18-2010, 10:00 PM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 01:16 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 03:22 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 10:38 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 12:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB