Re: $HTTP_POST array

From: Date: Thu, 23 Dec 2004 09:09:06 +0000
Subject: Re: $HTTP_POST array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205055@lists.php.net to get a copy of this message
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" */

« previous php.general (#205055) next »