First if you are looking for a real Perl soultion you'll want to check out merlyn's article here.

I had a similar desire to accomplish the same thing as you a few months ago but not a Perl guru, I did the following bit of trickery:

When the form gets submitted, you get redirected to a two-framed page. The top frame has a width of 0 so it won't be seen by the user. The top frame is also an .shtml page and contains a server side include to the script that will process the form. The bottom frame will contains the "Please Wait" message. So while your top frame is doing it's work, the bottom frame will display the message.

Now here's the real trick: you have your Perl code generate a bit of javascript at the very end of the Perl code (the one called by the top frame) that will redirect the browser to your desired page and replace the two-framed layout with a one framed layout. In case the user doesn't have javascript, you also have the Perl script generate <noscript> tags and have them click a link to take them to the page you want them to get to.

So now, when the Perl is done doing it's stuff, it will generate some js code an put it into the top frame, and then user will get automatically redirected (with js enabled) or they will be requested to click a link to continue on.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;


In reply to Re: CGI - Keep'em quiet page? by nysus
in thread CGI - Keep'em quiet page? by TommyGun

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.