Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Miguel Ribeiro
Thanks for your reply but for example, my problem is more like the following php3: Login'); echo(''); echo(''); } function vrf_passwd($f1) { printf("Login=%s",$f1); } switch($s) { case 1: vrf_passwd($login); break; default: login(); break; } ?> "Rasmus Lerdorf" <[EMAIL PROTECTE

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Rasmus Lerdorf
> I've tried other ways but my problem still continues... I can not pass > $login var out of the function. > > I don't have this problem in the two previous functions because I pass this > variable as function argument, but this last function that doesn't have > arguments I can't see the $login (e

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Miguel Ribeiro
Thanks for your reply. I've tried other ways but my problem still continues... I can not pass $login var out of the function. I don't have this problem in the two previous functions because I pass this variable as function argument, but this last function that doesn't have arguments I can't see

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-15 Thread Chris Lee
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 [EMAIL PROTECTED] ""Miguel Ribeiro"" <[EMAIL PROTECTED]> wrote in message 9dpgkk$mdb$[EMAIL PROTECTED]">news:9dpgkk$mdb$[EM