> function u want to use it. THis is not nice, what about if u > have a form with 50 fields and want a function to validate > all of them, u have to pass them all to the function or build > a little piece of code to make all the $GLOBALS local right? > Is this really the idea of global vars? Yes. But with regards to form variables, all you need to do is make one variable global: $HTTP_POST_VARS it is an associative array that contains all the post variables from the form. Make it global and just loop through it. Chris
- [PHP] PHP globals aren't really globals Christian Dechery
- Re: [PHP] PHP globals aren't really globals Thierry Coopman
- Re: [PHP] PHP globals aren't really globals Rasmus Lerdorf
- Re: [PHP] PHP globals aren't really globals Rog
- Re: [PHP] PHP globals aren't really global... John Vanderbeck
- Re: [PHP] PHP globals aren't really globals Christian Dechery
- Re: [PHP] PHP globals aren't really globals John Monfort
- Re: [PHP] PHP globals aren't really globals Rasmus Lerdorf
- RE: [PHP] PHP globals aren't really globals Boget, Chris
- RE: [PHP] PHP globals aren't really globals Christian Dechery
- RE: [PHP] PHP globals aren't really globals Boget, Chris
- Re: [PHP] PHP globals aren't really globals John Vanderbeck
- Re: [PHP] PHP globals aren't really globals Michael McGlothlin
- RE: [PHP] PHP globals aren't really globals Maxim Maletsky
- RE: [PHP] PHP globals aren't really globals php3