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
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
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;
> $
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
4 matches
Mail list logo