|
Posted by Peter van Schie on 07/12/06 22:37
Chris schreef:
> Well, now I don't know which way to go. I don't want globals on for other
> forms - just this one in particular as there are a bunch of form inputs and
> I was lazy and didn't want to assign a variable to each
Hi Chris,
So what about using extract()? It's really dirty, but it does what
you're looking for. ;)
Sample:
extract($_GET, EXTR_SKIP);
extract($_POST, EXTR_SKIP);
Be sure to use the second parameter and set it to EXTR_SKIP to be safe.
HTH.
Peter.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|