Hello:

I have a form which a person completes. They hit the submit button and the script will open a page another page. This script is called camp.cgi. This form contains their name, number, etc.

On this new page, the person selects one of three options. If they select option 1 or 2, the script will do one routine - send an email. If they select option 3, the script will do a second routine. After the person selects their option, they will click submit and will go through a second script called camp1.cgi. It is camp1.cgi which will send the email or perform the second routine.

How do I pass all the data that was submitted via the first script (camp.cgi) to the second script (camp1.cgi)?

The email that will be sent via camp1.cgi needs to display all the information about the person which they completed on the first form which is processed via camp.cgi.

Any help would be greatly appreciated.

Thank you in advance.

In reply to Passing form data between scripts by b310

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.