mr.freeze <nat...@...> writes: > > You are probably getting an error because the auth function is > disabled or the mailer is not set and form=auth() is returning an > empty string. You can avoid the error with a simple test: > > def user(): > form=auth() > if form: > submit = form.element("input",_type="submit") > submit["_type"] = "image" > submit["_src"] = URL(...) > return dict(form=form)
really appreciate, it works now when I use {{=form}}. Still if I use response.write(auth_login()), the submit button still keep unchanged, is here any solution? Frank
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.