From: Richard Huxton <dev@archonet.com>
To: Sharmad Naik <sharmad@im.eth.net>
To: pgsql-sql@postgresql.org
Subject: Re: passing parameters between forms
Date: Mon, 2 Apr 2001 13:14:00 +0100
Message-ID: <006601c0bb6e$684198e0$1001a8c0@archonet.com> (raw)
References: <20010402125218.A1428@im.eth.net>
From: "Sharmad Naik" <sharmad@im.eth.net>
> Hi,
> I have created a database with following structure
>
> CREATE TABLE member(
> mem_id INT,
> name TEXT,
> age INT);
>
> the first page is as follows :
> <!-- search1.html -->
> <FORM ACTION=search2.php>
> Member ID :
> <INPUT TYPE="TEXT" NAME="mem_id">
> The second page that is search 2.php is as follows :
>
> <!-- search2.php -->
> echo("<FORM ACTION=search3.php>");
> echo("$mem_id<BR>");
Create a hidden input element that will be posted on to the third form:
echo('<INPUT TYPE="hidden" VALUE=".$mem_id.'">');
> echo("$name<BR>");
> echo("$age<BR>");
> echo("<INPUT TYPE=submit VALUE=Enter
NAME=Enter>");
> // require("search3.php");
> // series($mem_id,$name,$age);
> echo("</FORM>");
> In my search3.php I want to insert (which i have not given) or atleast
echo the parameter like mem_id, age and name.My Q
> +is how do i pass the parameters between search2.php and search3.php.If
there is another way out pls tell.
> I tried using functions to get the work done.but couldn't get my way out.
This is more of a cgi question really - I'd suggest a quick visit to
www.faqs.org and have a look at the CGI faq.
- Richard Huxton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, sharmad@im.eth.net
Subject: Re: passing parameters between forms
In-Reply-To: <006601c0bb6e$684198e0$1001a8c0@archonet.com>
References: <20010402125218.A1428@im.eth.net> <006601c0bb6e$684198e0$1001a8c0@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox