All pastes #766852 Raw Edit

Something

public text v1 · immutable
·published 2007-11-09 06:06 UTC
rendered paste body
// ------------------------------------------------------------------------
/**
 * Get value from validation. 
 * 
 * Use the default if not available
 * @return string
 */
function defaultValue($field,$default='')
{
	// try to get the value from load->vars first 
	if (isset(???)) {
	
	}
	elseif (isset() {
		// grab the value from the flash
	}
	else {
		// use the default value
	}

}