Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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!

--jwest

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


Comment on Re: 2 script in a page

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://122944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-22 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (177 votes), past polls