Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: tracking session:variables

by rjsaulakh (Beadle)
on Jun 01, 2005 at 15:56 UTC ( [id://462533]=note: print w/replies, xml ) Need Help??


in reply to Re^5: tracking session:variables
in thread tracking session:variables

i am very sorry to both castaway and you i think i am not able to exxplain myself properly . from now on i will try to reprsent my views in such a way that i can get quick and related answer which will save time for both of us sorry i hope not to repeat it again

1. can i call a cgi program from within another cgi program
2. what are the things i have to take care of

Replies are listed 'Best First'.
Re^7: tracking session:variables
by Joost (Canon) on Jun 01, 2005 at 16:05 UTC
    You can call a CGI program from within another CGI program (take a look at do), but you usually don't want to - since normal CGI programs set up a response and parse input so you have to be really careful to not entangle the output and you'd be parsing the input twice for no good reason.

    IMO, if you're going this route, you'd be much better off using CGI::Application combined with CGI::Application::Session. That'll do 3 things: it'll set up a session automatically, and it'll help you do multiple actions in a single script in a reasonably consistent and easy to follow manner, and it'll make it very easy to use templates.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found