Re: $HTTP_POST array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
>      $msg =
> $new_classAccount->addAccount($HTTP_POST_VARS['accountName'],$HTTP_POST_VAR
>S['firstName'],$HTTP_POST_VARS['lastName']);
>
> is it possible to..
>      $new_classAccount = new classAccount;
>      $msg = $new_classAccount->addAccount($HTTP_POST);
>
> i googled a lot on this but did not find any good code sample.

Well the syntax you have looks OK, did you try it? Perhaps you meant to pass 
$HTTP_POST_VARS?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Cinemuck, n.:
 The combination of popcorn, soda, and melted chocolate which
 covers the floors of movie theaters.
 m		-- Rich Hall, "Sniglets"
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux