|Problems? Is your data what you think it is?|
Re: 2 script in a pageby jwest (Friar)
|on Nov 03, 2001 at 03:06 UTC||Need Help??|
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