This is really more of a question about how PM (or Everything) operates, so if you think it would be more appropriate in SOPW, feel free to move it there.

I first noticed this in the context of voting on nodes, but as far as I've looked, it's true of all PM pages. All the forms use the POST method and their action is /index.pl. Thus, after you submit the form (such as to record your votes) and the new page loads, the URL in your browser no longer reflects the node name or node_id which is being displayed. Among other things, hitting refresh won't work.

My question is, why does it work that way? It seems like when Everything is generating the page, it could modify the action in forms as it does for anchor links in the page. That is, forms would end up looking like this: <form method="POST" action="/index.pl?node_id=...&lastnode_id=..."Then after you vote (or whatever), browser refresh would still work. Since the form uses POST, the code that parses the form data could just ignore the GET "parameters".

Some reasonable answer formats I can think of:

I don't have a lot of web experience, so I apologize if this is patently obvious.

TIA


In reply to Form actions and browser refresh on PM by VSarkiss

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.