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
neridaj [ Di, 15 April 2008 07:52 ] [ ID #1942999 ]

Re: Storing Superglobals

neridaj [at] 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
Erwin Moller [ Di, 15 April 2008 10:01 ] [ ID #1943002 ]
PHP » comp.lang.php » Storing Superglobals

Vorheriges Thema: Undefined Offset / Read Error!
Nächstes Thema: PHP Online Classroom