Welcome Guest, Not a member yet? Register   Sign In
Custom validation rules
#1

[eluser]mihaibaboi[/eluser]
Hello,

I've got a problem that I can't seem to wrap my head around. I have a form that I validate with the Form Validation Class. The Username field is filled in by default with the value "Username".

In my controller, I want to validate that the user has filled in a username, but I also want to make sure that the user didn't just leave "Username" there. Is there a way to validate via a custom rule/function? Or is there some native rule that I can use that I'm missing?

Thanks
#2

[eluser]InsiteFX[/eluser]
See the Form_Validation Class Callback in the User Guide!

InsiteFx
#3

[eluser]mihaibaboi[/eluser]
[quote author="InsiteFX" date="1291483669"]See the Form_Validation Class Callback in the User Guide!

InsiteFx[/quote]

I knew there must me something I'm missing. It worked like a charm. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB