Re: Lynx issues "Alert!: Reloading document. All form entries will be lost!" when using header('Cache-Control: no-cache');

Mike via Lynx-dev <[email protected]> Fri, 31 Jul 2026 20:31:51 +0200
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On 2026-07-27 14:28, Chuck Houpt wrote:
> In the PHP, it looks like all the form elements use GET requests (action="get"), but at least some should use POST because they are creating/modifying a resource. Could this be the underlying problem?

Apart from my current attempts to replace GETs with POSTs, I've got an observation, maybe it's going to be relevant. I've noticed that the user guide says that

> forms which have POST as the METHOD (...) are always resubmitted, even if the content has not changed, when you activate the submit button.

This behavior isn't relevant to this problem of Lynx alerts because here no form submission is involved. Here, I open the page of a form, input something, and then *don't* submit (neither by the "Save" button, nor by the "Cancel" button), but open another page. After returning to the page with the form, the data inputted are there.

By the way, I wonder what might be suggested by the words "even if the content has not changed". In what circumstances should it change or not change?