Welcome Guest, Not a member yet? Register   Sign In
how can redirect with validate
#5

[eluser]Kency[/eluser]
[quote author="berkguy" date="1338447337"]You mean the callback when you use the CI form validation?[/quote]

ok i post sample code to make sense what i mean

Code:
url: http://example.com/form

<?php

form_open("controller/checkform);
//content
form_close();

?>

and my controller

Code:
function checkform(){
$this->load->library("form_validation");
            //some rule for validate
            if($this->form_validation->run()==FALSE){
                $this->form()
}

url change from http://example.com/form to http://example.com/checkform

but i dont want my url change like that, if i use redirect(/form) my form doesn't show any error


Messages In This Thread
how can redirect with validate - by El Forum - 05-30-2012, 11:46 PM
how can redirect with validate - by El Forum - 05-30-2012, 11:49 PM
how can redirect with validate - by El Forum - 05-30-2012, 11:54 PM
how can redirect with validate - by El Forum - 05-30-2012, 11:55 PM
how can redirect with validate - by El Forum - 05-31-2012, 12:05 AM
how can redirect with validate - by El Forum - 05-31-2012, 12:20 AM
how can redirect with validate - by El Forum - 05-31-2012, 12:26 AM
how can redirect with validate - by El Forum - 05-31-2012, 12:40 AM
how can redirect with validate - by El Forum - 05-31-2012, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB