I have several perl files, which each pass a transaction code (this is on a shopping site) from one to the other. In the last perl file, it calls a HTML file using the following code:
<form method="get" name="f1" action="finalorderpage.shtml"> <INPUT TYPE="hidden" NAME="VendorTxCode" VALUE=$VendorTxCode> <INPUT TYPE="image" SRC="proceed3.gif" VALUE="Submit the Order details +" ALIGN="left" width="75" height="27"> </form>
So as you can see, the $VendorTxCode is passed in a hidden field to the HTML page. However, I then need to retrieve this in the HTML file to use again as a hidden field. The code would is in the URL for example: http://www.domainhere.com/finalorderpage.shtml?VendorTxCode=23364876 But how do I retrieve this into the HTML document? Please do not say change the HTML document into a perl file as I cannot do this - it has to stay as a HTML document. Please help - this is probably something really simple but I am tearing my hair out :-S Thanks.

In reply to Retrieving Data by Anonymous Monk

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.