I am using a perl cgi script that does basically this:
At the end of process_form(), there is a call to print_form(), so that
I am basically having an infinite "form loop".
process_form() updates an INI file, in which there is a parameter read and
printed on the page by print_form().
So, let's say that I have submitted the first time and that this INI file
I actually see that the parameter is changed when print_form() prints
the page: this is fine.
The problem is: print_form() also sets the default values of the form entries
by reading from this same updated INI, but the changes do not appear on
the newly displayed page.
To make them appear, I have to reload the page completely ("completely" means: not a straight reload, because there is this well-known Repost From Data box that pops up - I need to reopen the document by typing the URL, and THEN reoad by pressing the refresh button).
Does anybody have some advice to solve this problem?
Is the only solution to have the process_form() function write a second
page, this page having a Meta-Refresh tag to reload the first document?
Thanks for any hint!