Here's what might work as a way to hard-code multiple surveys into one script. I know it's a little hackish, but I'd like a solution that works sooner rather than waiting several months to learn Perl first (I do have bills to pay; and the website needs to be functional.):

Replace the line near the top:
$JUMP_URL="$ENV{'HTTP_REFERER'}";

with:

if ($survey_name eq "01howfound"){ $JUMP_URL="http://www.webmonkeydean.com/et-toi/"; } if ($survey_name eq "02swampopera"){ $JUMP_URL="http://www.webmonkeydean.com/et-toi/schedule"; } # repeat for more surveys else{ $JUMP_URL="$ENV{'HTTP_REFERER'}"; }

And use $JUMP_URL as the links like this:
<a href="$JUMP_URL">Continue</a>

(In case you wonder "why not just use '$JUMP_URL="$ENV{'HTTP_REFERER'}";'", it wasn't working sometimes-- possibly because of firewall blocking.)


In reply to Re: Printing URL to webpage by Deanimal
in thread Printing URL to webpage by Deanimal

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.