Okay, this is an extract of what i got with the logging:
==> Script begins $token: 9bf32932a275cc43cfbe087fd250bbb387c3291d940cf055f5c0e21e0a2004 +9c $s->param('token'): d46f207c3ed8f13b3405476058065b9fa1264385c08e8d1355 +1e96a594de2ea2 $q->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d Doing Check... $s->param('token') [set after check]: dfa823a7399e368e47bf4ee9dab809af +c82c97d46e9c34faf5c47d60bcb43f1d ==> Script ends ==> Script begins $token: e61765060754bb5ba87457d3e61576188aa3230719d9706560cda181f57120 +b3 $s->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d $q->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d Doing Check... === Possible Reload === $s->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d $q->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d $token: e61765060754bb5ba87457d3e61576188aa3230719d9706560cda181f57120 +b3 ======================= $s->param('token') [set after check]: dfa823a7399e368e47bf4ee9dab809af +c82c97d46e9c34faf5c47d60bcb43f1d ==> Script ends ==> Script begins $token: 737d7506542862b1856d7f84f4f0ac1f39b1b96aac425076383419cab874ba +c6 $s->param('token'): dfa823a7399e368e47bf4ee9dab809afc82c97d46e9c34faf5 +c47d60bcb43f1d $q->param('token'): 9bf32932a275cc43cfbe087fd250bbb387c3291d940cf055f5 +c0e21e0a20049c Doing Check... $s->param('token') [set after check]: 9bf32932a275cc43cfbe087fd250bbb3 +87c3291d940cf055f5c0e21e0a20049c ==> Script ends
It first looks like the $token is not given correctly to HTML::Template::Compiled, but i have the same issues when trying with out it, having the html directly in the script. Seems like CGI does not update $q->param('token') for some reason.

In reply to Re^4: (CGI) Prevent a reload from resubmitting a form by fmk
in thread (CGI) Prevent a reload from resubmitting a form by fmk

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.