[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
[quote author="Demostenes Garcia" date="1252714141"]I want to register a user ONLY when the user submits but it happens inmediatelly I access the page.. and the validation is not working at all.[/quote] First off, your error string is referring to a non-existent variable ($user instead of $u). That's probably part of it. Second, for some reason you are printing content above the save attempt. (Maybe that's on purpose. Usually one performs the save attempt first, then prints out content.) Third, please look at the included examples in the documentation. I've got examples of how to generate a form and save it using the included HTMLForm and Array extensions. If you don't like using the extensions, I think I've got examples on this forum (yeah, it's long) and elsewhere in the docs that can help. Also, double-check all of your variable names and model information. It isn't that hard, and in fact is a lot simpler than using Form_Validation and AR manually. But the validation rules do work. ;-) |
Welcome Guest, Not a member yet? Register Sign In |