[thelist] php: difference between post vars?

Paul Bennett paul at teltest.com
Wed Aug 6 18:16:17 CDT 2003

Simon Willison wrote:

> There's an additional different: $_POST (and $_GET and family) are
>super-globals - they are available at all times, even inside
>functions. $HTTP_POST_VARS (which is deprecated and should not be
this needs to be qualified - it should not be used *if your php version 
is 4.3 +*, if you use $_POST / $_GET under a previous php version, they 
are not recognised as either superglobal or representative of the post 
or get vars array

>was a normal global variable, meaning you had to explicitly make
>it available inside functions using the global statement.

	Paul Bennett						
	Internet Developer				
	Teltest Electronic Design		
Email: paul at teltest.com				
Phone: 64 4 237 4557					
Web: http://www.teltest.com		
Wap: http://wap.teltest.com			

More information about the thelist mailing list