See the Web2py book at
http://web2py.com/books/default/chapter/29/07/forms-and-validators We have
validators for this purpose.
You can also handle it at the client side, using JavaScript.
Nico de Groot
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.c
db.define_table('person',
Field('name'),
Field('pic','upload')
)
What should I do such that the name field won't accept names with some
words like 'the', 'rock' and all.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
2 matches
Mail list logo