How do I make a form element required? |
[eluser]Jay Callicott[/eluser]
Is there not a way to use the validation class make form elements required? If not has anyone thought of a hack or something?
[eluser]maadmac[/eluser]
[quote author="Jay Callicott" date="1193294827"]Is there not a way to use the validation class make form elements required? If not has anyone thought of a hack or something?[/quote] Take a look at the Validation class page in the user guide again, a little more carefully. It explains how to make form elements required, or valid email addresses, or whatever... Code: $rules['username'] = "required"; It's all there.
[eluser]Jay Callicott[/eluser]
Ya but I'm talking about files. So it's not all there, bc file elements don't populate post. |
Welcome Guest, Not a member yet? Register Sign In |