I am new to Python (somehow I started looking at python 2 days ago).

I tried to write a simple interactive webpage with CGI, and I used HTML form to get user input. However, as everyone knows, if I refresh the webpage, the form data will be resubmitted again. I just have no idea how to prevent this from happening.

The same problem, but in php/javascript, has been discussed and solutions can be found, but I would like to find the answer to the python case.

I hope there is someone here who can address my problem. Since I am not quite familiar with the language, I hope that, instead of solely giving me a descriptive solution, the kind one can also give me the pieces of codes necessary.

Thank you very much