Connecting Tech Pros Worldwide Forums | Help | Site Map

Storing Superglobals

neridaj@gmail.com
Guest
 
Posts: n/a
#2: Jun 2 '08

re: Storing Superglobals


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

Erwin Moller
Guest
 
Posts: n/a
#1: Jun 2 '08
neridaj@gmail.com schreef:
Quote:
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
Closed Thread