Welcome Guest, Not a member yet? Register   Sign In
set_value() only working if the field is part of validation - CI 2.0
#7

[eluser]Phil Sturgeon[/eluser]
set_value() are for the form helper yes. $this->input->post() works the same as set_value() but does not need to be part of validation.

Code:
form_dropdown('name', array('foo', 'bar'), $this->input->post('name'));


Messages In This Thread
set_value() only working if the field is part of validation - CI 2.0 - by El Forum - 01-06-2011, 06:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB