form validation question |
[eluser]Unknown[/eluser]
Hi! I'm having problems validating a form... And I don't know why. I don't get any value from set_values() and even if I remove all the rules I still get FALSE when I'm trying to validate it... Here is the form: Code: <?php echo validation_errors(); ?> and here is the controlleR: Code: <?php contactview is actually the form's view. Thanks a lot!
[eluser]LuckyFella73[/eluser]
I'm not shure if this was the problem but you could try to set the name of your form elements (just set the name vakues like your id values). I see that you only set the ids and the user guide is talking about setting the name attribute.
[eluser]Unknown[/eluser]
Oh I'm so dumb! You are so right And is there any way to translate error messages? Thanks!
[eluser]LuckyFella73[/eluser]
You can add other language files besides the default english and edit the conf.php set "language" to your desired language. You can set up custom error messages using the form validation class as well. Its described in here (user guide): http://ellislab.com/codeigniter/user-gui...ation.html Look at section "Setting error messages" |
Welcome Guest, Not a member yet? Register Sign In |