[eluser]mihaibaboi[/eluser]
Hello. I have a problem that I think I know how to work around, but maybe you guys have a better idea.
So, I've got a form with the following inputs: Name, Email, URL and Comment. I use Form Validation Class to check if the input data is alright. The problem is, that the URL field is not required, so I don't validate it. As a result, if some other field fails the validation, the URL field is not repopulated.
I figure, if there's no rule set for it, the framework doesn't include it in the dataset sent back to the view.
Now, as I said, I think I have a workaround. I could just apply a trim rule to the URL, but it still bugs me a little. I should be able to validate some of the fields, without loosing the data in the others.
Am I doing something wrong, or is this just CodeIgniter normal behavior?