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
Storing Superglobals
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Storing Superglobals
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.
(#10850)