Welcome Guest, Not a member yet? Register   Sign In
Pre-populated inputs and validation
#11

[eluser]maadmac[/eluser]
[quote author="Chop" date="1187382560"]
First off - it would be really nice if CI had two extra bits of functionality with the validation class. They have $rules and $fields definitions - now lets us define $values. These would be seed values that would be default values of $this->validation->{field_name} when no submit has taken place.
[/quote]

Agreed. I just fake it with jQuery for now.

Quote:Next up, it'd be offly nice if there was a BOOL that we could access to see if the POST operation had happened. I know that you can fudge it with hidden values and chacking the post data, but it would still be nice to have a $validation_processed variable that we could hit.

If I understand what you're asking, couldn't you just test against the existence of the 'submit' datum in the $_POST array? I usually use a hidden field in this case, but have checked against the presence/absence of 'submit' in the past without any problems.


Messages In This Thread
Pre-populated inputs and validation - by El Forum - 08-14-2007, 06:32 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:31 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:37 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 09:45 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 10:06 AM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 03:25 PM
Pre-populated inputs and validation - by El Forum - 08-14-2007, 04:28 PM
Pre-populated inputs and validation - by El Forum - 08-17-2007, 09:29 AM
Pre-populated inputs and validation - by El Forum - 08-18-2007, 05:05 PM
Pre-populated inputs and validation - by El Forum - 10-20-2007, 12:03 PM
Pre-populated inputs and validation - by El Forum - 10-22-2007, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB