Re: $HTTP_POST array

From: Date: Wed, 29 Dec 2004 05:50:49 +0000
Subject: Re: $HTTP_POST array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-205286@lists.php.net to get a copy of this message
Hi Kalinga, it is not recomended to use $HTTP_POST_VAR array. Use $_POST and it have global scope. In PHP5, we have a special directive by which we can disable $HTTP_*_VAR. currently it defaults to enabled. But who says in future versions of PHP it default set to disabled. then your code will not run. So Use $_POST, $_GET etc. instead of using old long $HTTP_*_* style. zareef ahmed On Mon, 27 Dec 2004 18:31:21 +0300, Burhan Khalid <phplist@meidomus.com> wrote: > kalinga wrote: > > Dear all, > > Is it possible to pass the entire $HTTP_POST array to a function of a class > > as a variable? > > Use $_POST -- its automatically in scope of every function (you don't > need to pass it). > > You can pass any array to a function. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Zareef Ahmed :: A PHP Developer in India ( Delhi ) Homepage :: http://www.zareef.net

« previous php.general (#205286) next »