Page 1 of 1

Storing Superglobals

Posted: Tue Apr 15, 2008 12:51 am
by 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

Posted: Tue Apr 15, 2008 1:13 am
by Christopher
I assume you mean 'access' and not 'store'. Yes, it can be a good idea to centralize where and how you access the request superglobals.