RE: [INTERFACES] passing variable between cgi

From: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: [INTERFACES] passing variable between cgi
Date: 1999-03-01 17:15:55
Message-ID: AA5E228994ABD21189C8006097BCD3D625D7@woody.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

When the first CGI program is run and generates the second HTML page with
the second form on it, have it include some form fields of type 'hidden'.
The values of these fields would be the data you wish pass to the second
cgi.

You can then retrieve the data in the same way as you do for your other
fields when the form is submitted.

Shameless plug: Check out libcgi at http://www.vale-it.demon.co.uk/freeware
for a relatively easy way to get the form data.

HTH

Dave.

--
Dave Page, Network & Systems Manager, The Vale Housing Association Ltd.
dpage(at)vale-housing(dot)co(dot)uk
http://www.vale-housing.co.uk (Work)
http://www.vale-it.demon.co.uk/ (Home of pgAdmin)
Beer can be a permanent solution - but only if you have enough of it!

> -----Original Message-----
> From: owner-pgsql-interfaces(at)postgreSQL(dot)org
> [mailto:owner-pgsql-interfaces(at)postgreSQL(dot)org]On Behalf Of hoelc
> Sent: 01 March 1999 15:06
> To: linux-net(at)vger(dot)rutgers(dot)edu; PostgreSQL Interfaces
> Subject: [INTERFACES] passing variable between cgi
>
>
> 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
>
>
>

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Meskes 1999-03-01 18:55:11 Re: [INTERFACES] passing variable between cgi
Previous Message Thomas G. Lockhart 1999-03-01 17:06:45 Re: [INTERFACES] SQLDA