Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: 2 script in a page

by jwest (Friar)
on Nov 03, 2001 at 03:06 UTC ( #122944=note: print w/replies, xml ) Need Help??

in reply to 2 script in a page

The short answer is no, you can't (easily) use two CGI's to generate the content for one page without frames. With that said...

One way to go about this would be to develop three scripts. The first of which generates the appropriate HTML for your menu code. The second of which generates the HTML for the main content. The third script is the actual CGI that includes the HTML generated by calls to the previous two scripts, passing the appropriate parameters to them.

CGI::FastTemplate, amongst many other modules on the CPAN, can aid you greatly in doing this sort of thing, and might be worth looking into.

Of course, there are many other ways, most of them better, of doing this same thing. There are also several variants on this theme alone. You might consider using modules to generate the HTML code, for example. As always, TIMTOWTDI.

Hope this helps!

-><- -><- -><- -><- -><-
All things are Perfect
    To every last Flaw
    And bound in accord
         With Eris's Law
 - HBT; The Book of Advice, 1:7

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://122944]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2018-05-26 01:28 GMT
Find Nodes?
    Voting Booth?