in reply to Re: Re: Re: perl cgi - refresh question
in thread perl cgi - refresh question

And after the user clicks http://localhost/cgi-bin/sample_report.pl?value=xyz&check=1 this url sticks in the browser location field and when there is a refresh the same url is again submited to the server. (If you submit it in POST it won't do any better)

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: perl cgi - refresh question
by jonnyfolk (Vicar) on Apr 15, 2003 at 13:06 UTC
    Very true zby. When I read the question it didn't seem to me that updating the textfield by clicking the link was desirable at all, which is why I made it dependent on the internal variable check. If it is desirable that the link is clicked once and once only then my solution is not the correct one and it would appear that yours takes that requirement in account.

    Update: I've just had another look at the original question and it still appears to me that submission of the data for editing via the URL is a mistake. This in no way diminishes the fact that zby's solution solves the problem if an update via the URL is required.