It depends on the browser.

IE8, FF/Linux, FF/Windows do the checks (like if the email is a real
email)
Chrome/Linux, Chrome/Windows don't .

I get the emails from FF & IE, not from chrome.

I don't have any errors due to this behavior.

L.




On Feb 26, 5:32 pm, szimszon <[email protected]> wrote:
> What is the output? Any error message? Form is accepted?
>
> On febr. 26, 17:16, LBarret <[email protected]> wrote:
>
>
>
> > 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