Re: Passing vars between functions (with POSTs)
| From: | Chris Lee | Date: | Tue, 15 May 2001 17:45:49 +0000 |
| Subject: | Re: Passing vars between functions (with POSTs) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52916@lists.php.net to get a copy of this message | ||
this will ensure that the variable is a POST var vs a GET var too...
function test()
{
global $HTTP_POST_VARS;
echo $HTTP_POST_VARS['login'];
}
--
Chris Lee
lee@mediawaveonline.com
""Miguel Ribeiro"" <miguel.ribeiro@ftse.com> wrote in message news:9dpgkk$mdb$1@toye.p.sourceforge.net...
Hi,
I'm struggling to pass from 3 functions (and one of them have a html form
POST) one simple variable called $login.
Once in the function (that have form with POST) is calling a php3 without
passing the $login (like: common.php3&login='someone') and since the next
function doesn't have any relation with this one (doesn't receive any value
by return) but requires the same variable ($login).
My question and great doubt is:
How can I share $login in several functions... without use or change
(because I don't have access) the PHP configuration environment...
I believe that this could be solve with register_globals var but I don't
know how to do it.
Best Regards,
Miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net