You are here: Re: Overriding Global Variables off for one form with a lot of inputs « All PHP « IT news, forums, messages
Re: Overriding Global Variables off for one form with a lot of inputs

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация