pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedpassing parameters between forms
2+ messages / 2 participants
[nested] [flat]
* passing parameters between forms
@ 2001-04-02 07:22 Sharmad Naik <sharmad@im.eth.net>
0 siblings, 1 reply; 2+ messages in thread
From: Sharmad Naik @ 2001-04-02 07:22 UTC (permalink / raw)
To: pgsql-sql
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 -->
<HTML>
<BODY>
<H1> This is the first page </H1>
<FORM ACTION=search2.php>
Member ID :
<INPUT TYPE="TEXT" NAME="mem_id">
Member NAME :
<INPUT TYPE="TEXT" NAME="name">
Member AGE :
<INPUT TYPE="TEXT" NAME="age">
<INPUT TYPE="submit" NAME="Enter">
</FORM>
</BODY>
</HTML>
The second page that is search 2.php is as follows :
<!-- search2.php -->
<HTML>
<BODY>
<H1>This is the Displaying page</H1>
<?php
if(mem_id)
{
echo("<FORM ACTION=search3.php>");
echo("$mem_id<BR>");
echo("$name<BR>");
echo("$age<BR>");
echo("<INPUT TYPE=submit VALUE=Enter NAME=Enter>");
// require("search3.php");
// series($mem_id,$name,$age);
echo("</FORM>");
}
else{ echo("<H2>Inconvient data</H2>");}
?>
</BODY>
</HTML>
This is search3.php
<?php
function series($mem_id,$name,$age)
{
echo("$mem_id");
echo("$name");
echo("$age");
}
series($mem_id,$name,$age);
?>
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.
Can anybody help me?
Sharmad
--
The secret of the universe is @*&í!'ñ^#+ NO CARRIER
__ _ _ _ _
|_|_||_||_||\/||_|| \
_|| || || \| || ||_/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: passing parameters between forms
@ 2001-04-02 12:14 Richard Huxton <dev@archonet.com>
parent: Sharmad Naik <sharmad@im.eth.net>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2001-04-02 12:14 UTC (permalink / raw)
To: Sharmad Naik <sharmad@im.eth.net>; pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-02 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 07:22 passing parameters between forms Sharmad Naik <sharmad@im.eth.net>
2001-04-02 12:14 ` Richard Huxton <dev@archonet.com>
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