Welcome Guest, Not a member yet? Register   Sign In
Magic Form - Need Explanation
#2

[eluser]GSV Sleeper Service[/eluser]
set_value is doing that. it will set the value to whatever is in the current $_POST, if the name exists. it also looks at the validation values too, neat! The user guide doesn't mention this at all...
from the source code -
Code:
/**
* Form Value - this needs updating too, should be 'Set Value'
*
* Grabs a value from the POST array for the specified field so you can
* re-populate an input field or textarea.  If Form Validation
* is active it retrieves the info from the validation class
*
* @access    public
* @param    string
* @return    mixed
*/
take a look at system/helpers/form_helper.php to see what's going on.


Messages In This Thread
Magic Form - Need Explanation - by El Forum - 11-28-2008, 12:06 PM
Magic Form - Need Explanation - by El Forum - 11-28-2008, 12:45 PM
Magic Form - Need Explanation - by El Forum - 11-28-2008, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB