Welcome Guest, Not a member yet? Register   Sign In
Form generation library repopulate problem
#2

[eluser]CodeIgniter Fan[/eluser]
Ok I solved by adding one function to form generation library file

Code:
function set_values($data)
{
  foreach($data as $ind => $value)
     $this->_inputs[$ind]['value'] = $value;
}

I am calling this function if validation is successfull and setting fields value to null "".


Messages In This Thread
Form generation library repopulate problem - by El Forum - 11-29-2007, 11:04 AM
Form generation library repopulate problem - by El Forum - 11-29-2007, 01:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB