pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedpassing arguments within php pages
2+ messages / 2 participants
[nested] [flat]
* passing arguments within php pages
@ 2002-02-13 07:21 arun kv <arun@library.iisc.ernet.in>
0 siblings, 1 reply; 2+ messages in thread
From: arun kv @ 2002-02-13 07:21 UTC (permalink / raw)
To: pgsql-php
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.
thanx in advance
Arun
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: passing arguments within php pages
@ 2002-02-15 21:29 knut.suebert@web.de
parent: arun kv <arun@library.iisc.ernet.in>
0 siblings, 0 replies; 2+ messages in thread
From: knut.suebert@web.de @ 2002-02-15 21:29 UTC (permalink / raw)
To: pgsql-php
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-02-15 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 07:21 passing arguments within php pages arun kv <arun@library.iisc.ernet.in>
2002-02-15 21:29 ` knut.suebert@web.de
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