This code works under FF not under Chrome (5.0.330.0 (39184) Ubuntu ).

<pre>
    form = FORM(
               LABEL("Get our monthly
newsletter:",_class="InputCaption", _id="NL"),
 
INPUT(id="Email",_class="RegistrarInput",_name="email",size="25",maxlength="50",value="Enter
your email here",_onfocus="this.value=''",_type="text",
               requires=IS_EMAIL()),
               INPUT(_type="submit",_name="Send",value="submit",
text="ok"),
               _id="NL"
            )
    if form.accepts(request.vars, session):
        response.flash="form accepted"
        email        = "Email: %s"        %( form.vars.email)
        #==
        mail.send( to=['[email protected]'],
                   subject='newsletter inscription',
                   message=email)
        redirect(URL(r=request,f='index'))
</pre>

something to do with the redirect ?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to