Form Validation Class - Get validated values? |
[eluser]dmorin[/eluser]
@CroNiX Very true. I'm not just setting a default value. What I'm doing is, if an email address field isn't provided/entered, I looking up the email address in my system based on other fields that are submitted. So it's a little more complicated than just adding a default value. @Colin Williams Doing what you suggested won't do anything unless the conditional surrounding it that checks if the key is already set in the post array is also removed. To understand why I'm "injecting" data into the POST, think about an API where some fields are optional. When people post to the API, they'll only include the fields they're interested in, leaving off the optional ones. So, if you need to do anything with those optional fields to validate the incoming parameters, it won't be possible to get those fields from the validation class. I'm not really looking for work-arounds since I can come up with plenty on my own. I now believe this is a bug which is why I asked that it be move to the bug forum. Thanks |
Welcome Guest, Not a member yet? Register Sign In |