in reply to transfer data between 2 perl progs

I don't quite get it - are you redirecting from CGI 1 to CGI 2?

If so, just pass the arguments to CGI 2. use HTTP_METHOD (or arguments) to determine whether you are on the initial read or subsequent post.

If not - how are 'CGI 1 & 2' connecting?

---Lars

Update: Regarding session data and tampering, see my note in the Storing encrypted data in url thread.

Replies are listed 'Best First'.
Re^2: transfer data between 2 perl progs
by cashoob (Initiate) on Dec 16, 2004 at 10:10 UTC
    thnx first cgi is processing big database for several users, also provide data entry forms based on http interface, second cgi is for file upload to the server (file renaming, viruses check etc.) so when cgi 1 is ready for data entry (generated html page) one of the fields is a link to the file upload cgi. I can't get this cgi working under sub of cgi1 because of several reasons which are not important here. When CGI 2 has uploaded and renamed the file with success it is generating info page about this success to inform the user. And here I need to copy a new name of the file (eg. $end_name of cgi2) as a hidden process into CGI1 as a variable (eg. $file_name). I do not know how to make possible this operation to be done on the client computer without server involving in it. (it maybe 100 separated sessions of this cgi programs at the time) I have never done data transfer between 2 separated cgi, I do not want make possible to track down the server paths where this file is going to be stored and what name it got renamed with. So please describe the best way to do it because I am beginner with it. I am looking for this info on the net but without any results. I can't open the cgi 2 under cgi 1 with any links like /a href=$ENV{blah blah blah}/ or /form .../ because it has a separate interface. So I am looking for possibility to copy $end_name (cgi2) to memory and paste it to $file_name (cgi1) from memory. big thnx for any help. Mark