a sample (in portuguese, just change the name or fields):
in controller:
def fale_conosco():
form = SQLFORM.factory(
Field('nome', requires=IS_NOT_EMPTY(error_message='Preencha o seu
nome')),
Field('email', requires=IS_EMAIL()),
Field('motivo',requires=IS_EMPTY_OR(IS_IN_SET
I wouldn´t use those PHP scripts if you wan´t to use web2py.
You need to make a form with SQLFORM. I guess you wan´t to save the
fields to a database and send them to you via email.
In the if form.accepts section you gather the data and create the mail
you want to send.
Kenneth
I expec
I expect that I am going about this the wrong way but here it
goes..
I am currently designing a form for my web2py website. When the user
clicks submit I would like my application to send me the form fields
via email.
My hosting provider will supply form mail.php files:
On Linux hosting acco
3 matches
Mail list logo