Welcome Guest, Not a member yet? Register   Sign In
Avoiding POSTDATA popup while still using default Validation class...
#2

[eluser]Nikhil Vijayan[/eluser]
The pop up isn't a bug and as u said makes complete sense

Its the basic working of web and there is no reason we should override it ..

if u hate it that much read the rest

To solve your problem u will surely need to use session

using php inbuilt session can help reduce codes like

Code:
function add(){

// form validation code

if($this->validation->run()){
  //submit to db
  
  redirect('to_page');
  
}
else{
  $_SESSION['form_name_data'] = $_POST;
  redirect('to_form_page');


}

}


and in form page controller


Code:
$data = $SESSION[form_name_data];

  $this->load->view('form_page', $data);


in form view page


Code:
<input name="first_name" value="<?= $first_name ?>">

etc etc.....


Messages In This Thread
Avoiding POSTDATA popup while still using default Validation class... - by El Forum - 06-12-2008, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB