prepend a file with: while(list($k,$v)=each($_POST)) $$k = $v; this should preserve security and should give compatibility with old works (php4.0.6)
what do u think? could it be a good solution?
the extract() function does all that in one command.
It is a solution, but why would you want to register globals at all? It is much cleaner and more 'secure' to grab your values directly from $_POST etc.
BTW, was $_POST available back in 4.0.6?