[eluser]Omaplie[/eluser]
Hi,
Thanks for your quick answer.
But the trouble is that I use something like this in my controller :
Code:
<?php
function signup_unite()
{
//LOAD VIEW
$layout['content'] = $this->load->view('signup_unite', $data, TRUE);
$this->load->view('layout',$layout);
if($this->form_validation->run())
{
//ACTION IF FORM IS OK
}
else
{
// ACTION IS FORM IS NOT RUNNING
redirect(current_url());
}
}
?>
The trouble is that the redirect is done when I arrive on the page.
I would like that the else be launch only when there is a trouble with the form.
And unfortunately, I think that
Code:
redirect(current_url());
doesn't work.
Thank you for your help.