From: knut.suebert@web.de
To: PGSQL <pgsql-php@postgresql.org>
Subject: Re: passing arguments within php pages
Date: Fri, 15 Feb 2002 22:29:56 +0100
Message-ID: <20020215212956.GB2368@web.de> (raw)
In-Reply-To: <Pine.BSO.4.21.0202131246590.3088-100000@library.iisc.ernet.in>
References: <Pine.BSO.4.21.0202131246590.3088-100000@library.iisc.ernet.in>
arun kv schrieb:
> hai,
> how to pass an argument between php pages as a link ( without using
> forms). i should get the agument as a value (string) in my current page
> from previous page from where i had created link.
Hello,
that seems to be totally OT here. But you can use basic HTML on your
"previous page"
printf("<a href='current.php?ARG=%s'>Link</a>", $value);
to get it on the "current page":
printf("ARG has value: %s", $ARG);
See
http://www.php.net/manual/en/html/language.variables.predefined.html
for HTTP_GET_VARS and HTTP_POST_VARS, too. If you use an version of
PHP older than v4.0.3, look for track_vars at the same URL, too.
If the string contains other characters than 0-9a-zA-Z see
http://www.php.net/manual/en/html/function.urlencode.html
Maybe session handling could be interesting for you:
http://www.php.net/manual/en/ref.session.php
Bye,
K.
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-php@postgresql.org
Cc: knut.suebert@web.de
Subject: Re: passing arguments within php pages
In-Reply-To: <20020215212956.GB2368@web.de>
References: <Pine.BSO.4.21.0202131246590.3088-100000@library.iisc.ernet.in> <20020215212956.GB2368@web.de>
* 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