> From: Alex Shi [mailto:[EMAIL PROTECTED]]
> 1. why PHP changed the way to access submitted vars;
Because if you use a hidden variable like $validuser='yes' inside your
script you probably forgot to check whether the user did this:
www.eol.ca/page.php?validuser=yes
> 2. any good suggestion
That's because in the newer versions of php the register globals
directive is set to off by default...If you turn that directive on
and then restart apache, you will be able address GET/POST vars
normally (by their identical var name)
- Mike D
>Hi,
>
>I didn't realized that PHP had been go
THanks!
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
000f01c269a4$a7329be0$7c02a8c0@coconut">news:000f01c269a4$a7329be0$7c02a8c0@coconut...
> > I didn't realized that PHP had been going so fast that it was creating
> > problems for compatiblility.
> >
> > Here is my situation: PHP on m
> I didn't realized that PHP had been going so fast that it was creating
> problems for compatiblility.
>
> Here is my situation: PHP on my development server is 4.0.6 while
> on the application server it is PHP 4.2.2. I bet you all know that
there's
> a huge basic differences between the two but
Alex
You can change back to the old way of parsing vars by simply changing the
"register_globals" setting to "on" in your PHP config. Though this is
certainly not recommended (mainly for security concerns).
Good PHP coding practice suggests that you use superglobals when you wish to
access sessi
5 matches
Mail list logo