Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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]
Discipulus shutdown and logoff seem untrappable by Perl on win. But it is in Cygwin. but i cannot switch to it
[choroba]: It has the widest rear seats space available in the same price category - needed for the 3 kids.
Discipulus families growth is related to price of cars nowadays..
[choroba]: price of anything, unfortunately
[Discipulus]: yes, unfortunately.
[Corion]: Discipulus: you can "easily" trap shutdown/logoff in a Win32::GUI application by capturing and responding to the appropriate message

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-01-17 09:41 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (154 votes). Check out past polls.