well, if aardvark is going to take some time to figure out what your problem is, I thought I would try to help out...

You need to back out and give us an idea of the setup of "page one" and "page two". At first I thought that you were using a perl script to generate both pages and handle the CGI, as probably did aardvark, who suggested a dispatch table. But the more I read your second post, it looks like "page one" and "page two" are html files and you have a perl script to handle the CGI from page two.

If my assumption is correct, you are then asking how to get the data inputted from "page 2" or the database to be displayed in a field in "page 1". Correct?

When you are opening "file.cgi" what is file.cgi??? The database or "page 1" html? When it is being "appended" to the bottom, the bottom of what - a database or an html file?? (The ">>" usually signals an append, although I believe it should be with the filename?)

When you say you want the data to appear in a field, do you mean a CGI form field? If so, the only way to do that is if you are using perl to generate the html for page one on the fly, and you stick the desired data within the form element's VALUE tag or within the TEXTAREA tags (this is basic form HTML).

My suggestion is to take a step back and think about what you are doing first, so you can plan an approach instead of looking for a patch solution.

In reply to Re: CGI parameter passing (was Aardvark) by fpi
in thread CGI parameter passing (was Aardvark) 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.