http://www.perlmonks.org?node_id=589596


in reply to Passing data from script to script.

<font size="4" color="#FF0000">Enter data here.</font>

FYI, modern HTML uses label and style sheets.

How on earth can I pass $wanted to the second script open.cgi

There are a number of options. For that example, I'd likely use URI to build a URL with the data in the query string and redirect to that.

  • Comment on Re: Passing data from script to script.

Replies are listed 'Best First'.
Re^2: Passing data from script to script.
by jettero (Monsignor) on Dec 13, 2006 at 15:54 UTC
    This is correct. But, if you want to pass a lot of things between CGIs, you'll probably be better off passing a session identifier between scripts and storing the values in a database.