Ok I just solve this problem
Based on news.txt [Inside php package]:
22 Apr 2002, Version 4.2.0
- ATTENTION!! register_globals defaults to 'off' now !!!
Changing register_globals to "on" at php.ini solve this problem.
There is also a note in php.ini:
; You should do your best to write your scripts so that they do
; not require register_globals to be on; using form variables
; as globals can easily lead to possible security problems, if
; the code is not very well thought of.
Is there really a better way to rewrite this without turning on the register_globals ?