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

[eluser]Chop[/eluser]
I know I'm resurrecting this from the past, but I'm having this issue right now.

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.

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.

Now then, with respect to the code in this post - thepyromaniac - I like the way you think. My only issue is that this:

Code:
isset($this->validation->$field)


seems to always be true with me. I'm not sure if this is a CI version difference, a PHP difference, or what - but my check had to be:

Code:
($this->validation->$field!="")

I'm off to the request forums to see if anyone else has made this request.


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