Storing Superglobals
am 15.04.2008 07:52:23 von neridaj
Hey,
I'm wondering if it is a good idea to store $_POST, $_GET vars in an
include file. I have a lot of repeating vars and was wanting to
consolidate them into one file to be included whenever such vars were
needed, is this a bad idea?
Thanks,
Jason
Re: Storing Superglobals
am 15.04.2008 10:01:55 von Erwin Moller
neridaj@gmail.com schreef:
> Hey,
>
> I'm wondering if it is a good idea to store $_POST, $_GET vars in an
> include file. I have a lot of repeating vars and was wanting to
> consolidate them into one file to be included whenever such vars were
> needed, is this a bad idea?
>
> Thanks,
>
> Jason
Hi,
How do you store $_POST etc in an includefile?
They are made global by PHP in all your scripts/functions/classes.
What is it that you want to do, and why?
Regards,
Erwin Moller