It's hard to tell exactly what you have going on without some sample code. But it sounds like you want to use CGI parameters to pass around some info. Here is some info on using parameters
in page 2 form: <form action="page_1.cgi" method="post"> <input type="hidden" name="info" value="$info_from_database">
in page 1:
my $info = $cgi->param('info')
Then in you can test and see if there is any data in the $info parameter and print it.
If you want it in a textfield then try this: <input type="text" name="textfield_1" value="$info">
You may also want to consider using a dispatch table as outlined by chipmonk here or by japhy here. A dispatch table gives a 'cleaner' way to program multi-page CGI scripts. Good Luck.

Get Strong Together!!


In reply to Re: question for the monks by aardvark
in thread How to get CGI input parameters (was: question for the monks) 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.