Maybe my brain has been damaged by lack of caffiene, but it seems to me the other monks are answering a different question than the one you asked.

Current Situation

You have a web page which displays a form. When the user completes the form, it is sent to a CGI script, which transmits the information to a third party.

Of course, other possibilities exist; for example, that your web site displays a page containing a form, but when the Submit button is pressed, the data goes tot he third party, without ever coming to your site.

Desired Change

You wish the data to be saved at your system.

Trivial Solution

Is it possible to configure Apache so that the POST arguments are made part of the log? Is it possible the information already is being logged?

Less Trivial Solution

When the button is pressed, a CGI script is invoked. Modify the script so it saves the data before sending it off to the third party.

Somewhat Tougher Solution

If the data is going directly to the third party, modify the web page containing the form, so it invokes your CGI script instead of someone else's. Your script can save the data, then re-direct the user to the remote script, or it can invoke the remote script "secretly" and then pass the return values to the user.

--
TTTATCGGTCGTTATATAGATGTTTGCA


In reply to Re: Saving parameters before sending to 3rd party by TomDLux
in thread Saving parameters before sending to 3rd party by jonnyfolk

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.