Your explanation is quite clear, but you do not seem to be totally clear in your understanding of what is happening on the client (browser) and what is happenning on the server.

Your cgi script runs on the server and so that cannot open new browser windows - the server cannot access the client machine except to respond to requests FROM the client.

Also, the server cannot POST or GET data to the client, it is the other way round. Again, the server sends data to the client as a response to a request.

What you will need to do to open a new browser window is to get the browser to do that - the best option here is JavaScript. That new window then requests the database results by requesting the cgi script from the server - this is also in JavaScript.

This will appear to operate in the way you describe, just what actually happens underneath is in a different order.

-- iakobski


In reply to Re: Perl and new browser windows by iakobski
in thread Perl and new browser windows by lxhoo

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.