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

[eluser]Andrewkha[/eluser]
Hello!

Stupid question from newbie...

I'm creating an edit item form (let's say editing user details). The username field is unique so I want to validate this by using is_unique[table.field] feature of the form validation class. The problem is - if I do not change the username field, it tries to validate it and of course finds the same value in the DB (it finds itself actually). How can I overcome this?
#2

[eluser]Tpojka[/eluser]
Some code in tags maybe?




Theme © iAndrew 2016 - Forum software by © MyBB