>
> My view code is fairly minimal, but I suspect it is where the bug lies:
>
> {{extend 'layout.html'}} 
> <form> 
>   Email address: <input type="text" name="email" /><br /> 
>   Password: <input type="password" name="pwd" /><br /> 
>   Confirm password: <input type="password" name="re_pwd" /><br /> 
>   <input type="submit" /> 
> </form>
>

Yes, you have created your form manually in pure HTML, and you have not 
included the error divs, so no errors will appear when one occurs. You 
might consider just using web2py's standard form serialization via:

{{=form}}

You can change the formstyle if you like (see 
http://web2py.com/books/default/chapter/29/7#SQLFORM for details). If you 
need more customization, try the method shown here: 
http://web2py.com/books/default/chapter/29/7#Custom-forms. That let's you 
control the layout but still uses the field widgets generated by web2py 
(which include the errors when they occur). Also, for details on how to 
handle your own error displaying, see 
here: http://web2py.com/books/default/chapter/29/7#Hide-errors.

Anthony 

Reply via email to