Received: from beryte.com (liban.beryte.com [62.116.6.250]) by hub.org (8.9.2/8.9.1) with ESMTP id KAA19169 for ; Mon, 1 Mar 1999 10:32:46 -0500 (EST) (envelope-from nag@beryte.com) Received: from localhost (nag@localhost) by beryte.com (8.9.1a/8.9.1) with ESMTP id QAA04496; Mon, 1 Mar 1999 16:30:47 +0100 Date: Mon, 1 Mar 1999 16:30:47 +0100 (MET) From: nagib hobeica X-Sender: nag@liban To: hoelc cc: linux-net@vger.rutgers.edu, PostgreSQL Interfaces Subject: Re: passing variable between cgi In-Reply-To: <36DAACCD.9FB547C1@pd.jaring.my> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, One common approach is to use the "input type=hidden" tag. i.e. The output from your first CGI would have INPUT TYPE=hidden Name=NameOfTheVar VALUE=ValueAssignedToVar within the second click button form. This information will be hence available to your second CGI. hope it helps, nag PS: a CGI mailing list would be more appropriate On Mon, 1 Mar 1999, hoelc wrote: > Hello, > I am setting up PostgreSQL (postgresql-6.4.2) database in Linux (Linux 2.0.27) > system, and want to access the database with cgi ( C program) through Apache > (version 1.1) server. My application involve a few cgi programmes. > I can not figure out how to pass varibles between cgi programmes. > > My application involve some thing like this: > In a HTML page, when the user click a button, a cgi program will run and get > some data from Postgres, then when the user click another button, the other cgi > will be triggerred to process certain data got by the previous cgi, so, I will > need to pass the data get by the first cgi to the second cgi according to the > user choice ... > > I am using the embedded SQL (ecpg) method to write the cgi ( C program > ) to get data from postgresql-6.4.2. How should I pass variable > between these C program? What are the common methods to develop this > kind of application? Please advice. Thank you. LCH > > > - > To unsubscribe from this list: send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.rutgers.edu >