Re: [PHP] $HTTP_POST array

2004-12-28 Thread Zareef Ahmed
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

Re: [PHP] $HTTP_POST array

2004-12-27 Thread Burhan Khalid
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 un

Re: [PHP] $HTTP_POST array

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 16:46, kalinga wrote: > Is it possible to pass the entire $HTTP_POST array to a function of a class > as a variable? It is possible to pass *any* array to a function of a class as a variable. > without doing ... > > $new_classAccount = new classAccount; > $

[PHP] $HTTP_POST array

2004-12-23 Thread kalinga
Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? without doing ... $new_classAccount = new classAccount; $msg = $new_classAccount->addAccount($HTTP_POST_VARS['accountName'],$HTTP_POST_VARS['firstName'],$HTTP_POST_VARS['lastName']); i