[eluser]Julia Yan[/eluser]
--------------controller
if ($this->form_validation->run() == FALSE){
echo "[removed]alert(' ".' input error please redo '."');history.go(-1);[removed]" ;
/*
if runing the above line,
it back to page keep current input,
but validation_errors() could not display error message?
*/
/*
if do not runing the above line
validation_errors() could display error message,
but lost current input?
*/
}
--------------view
<?php echo validation_errors() ; ?>
...edit form
--------------
How can I get both ?
1, validation_errors() display
2, keep current input when page back