Form Validation from User Guide does not seem to work |
[eluser]Ki[/eluser]
I have looked through the code a million times - its a cut and paste directly from User Guide Validation, but does not seem to work. I get no errors, just reloading of the form: Controller - Form.php Code: <?php From - MyForm Code: <html>
[eluser]Ki[/eluser]
does anybody have an example of a working form validation?
[eluser]Mike Ryan[/eluser]
Hi, The example in the docs does work, so something went wrong during the copy and paste. I can see some incorrect code in what you posted: Code: rules['Username'] = "required"; I would suggest deleting it all, and starting the test again. Also, you should be using the new Form Validation instead of the old Validation class. |
Welcome Guest, Not a member yet? Register Sign In |