This is not in a view therefore you should do

form=FORM(...., _action=URL(r=request, c='comm', f='esend'),
_method="post")

Massimo





On Apr 7, 5:58 pm, waTR <roman.goldm...@gmail.com> wrote:
> CODE:
> form=FORM(TABLE(TR("Your name:",INPUT
> (_type="text",_name="name",requires=IS_NOT_EMPTY(),
> _class="frm_field")),
>                     TR("Your email:",INPUT
> (_type="text",_name="email",requires=IS_EMAIL(), _class="frm_field")),
>                     TR("Subject",INPUT
> (_name="subject",requires=IS_NOT_EMPTY(), _class="frm_field")),
>                     TR("Department",SELECT('Select One','General
> Mailbox','Support','Webmaster','Billing','Investor
> Relations',_name="department", _value="Select One", requires=IS_IN_SET
> (['General Mailbox','Support','Webmaster','Billing','Investor
> Relations']), _class="frm_field")),
>                     TR("Message",TEXTAREA
> (_name="message",requires=IS_NOT_EMPTY(), _class="frm_txtbox"),
> _class="frm_field"),
>                     TR("", INPUT(_type="submit",_value="Send",
> _class="form_btn"), _class="aright"), _class="frm_tbl"), _action="URL
> (r=request, c='comm', f='esend')", _method="post")
>
> The FORM(_action="") won't accept a URL() for some reason... I have
> tried doing {{URL()}}, {{=URL}}, etc. nothing seems to work...
>
> BUG or Me ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to