Welcome Guest, Not a member yet? Register   Sign In
How to call certain div class when certain condition is done?
#4

[eluser]dhiya[/eluser]
Try this solution:

in your view:

<?php if(isset($message)){ ?>
<div class="msg msg-ok">
<p><strong>Your file was uploaded succesifully!</strong></p>
<a href="#" class="close">close</a>
</div>
&lt;?php } ?&gt;

in your controller:

public function add_thread()
{
$data = array(
'name' =>$this->input->post('name'),
'text'=>$this->input->post('text')
);

if($this->site_model->insert_thread($data))
{
$data['message'] = 'your message here';
}

$this->load->view('your_view.php',$data);

redirect ('site');

}


Messages In This Thread
How to call certain div class when certain condition is done? - by El Forum - 04-19-2012, 04:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB