When you say "refresh the page" you mean you "click the reload button". That causes a form re-submission.
To prevent it, redirect(URL()) after form.accepts(...) On Sep 27, 11:31 pm, Audra Rudys <[email protected]> wrote: > Hi all, > I'm new to web2py and just dipping my toe in with a simple posting form (2 > fields, a summary and description, displays form and the previously > submitted values below -- date posted, summary, description.) I notice that > after posting, my summary and description are cleared out in the form, > however, if I refresh the page, the last post I had gets reposted, resulting > in duplicates. I have a validator on summary and description so if they're > blank, it doesn't allow the user to post with the submit button, but this > doesn't kick in with refresh. Is there a trick for stopping this, wouldn't > want these duplicates in a live application database. > > By the way, kudos to all the developers/folks working on web2py, what a > great framework! Can't wait to use more of its functionality! > > Thanks, > Audra

