Form validator |
[eluser]Watnow[/eluser]
Hello, I'm new to codeigniter, but i like it very much. building @ the moment an logon system i have an profile page where the user can change his name/username/email address etc. now i have an question i want to use the form validator of CI i want to know can i use double variable for the callback function like: Code: function changeprofile(){ is this possible? Please let me know.. Greet, David
[eluser]WanWizard[/eluser]
You can't do it that way, but you can do Code: $old_email = '[email protected]'; So you have to retrieve the old address up front, and pass it to the callback for validation.
|
Welcome Guest, Not a member yet? Register Sign In |