Refresh Problem

MRAB python at
Sun Apr 11 21:53:23 CEST 2010

Victor Subervi wrote:
> Hi;
> I send variables to a script. The script adds appropriate lines into a 
> database of an order to my shopping cart. When I refresh the screen, as 
> no doubt some customers will do, it re-ads those orders. Now, I can 
> delete them, but that's not the point. I don't want it to re-ad the 
> orders. How do I skirt this problem?
When you click on the Submit button on the form it should post the data,
ie use method="post", not method="get". If refreshing causes it to
re-submit, then you're using the wrong method. This is basic stuff.

More information about the Python-list mailing list