try this :
class me
{
var arr_post;
function init($par_arr_post)
{
$this->arr_post=$par_arr_post;
}
}
> -----Original Message-----
> From: Daniel Harik [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 04, 2001 8:42 PM
> To: [EMAIL PROTECTED]
> Subject: Access $HTTP_POST_VARS from class member fucntion
>
>
> Hello
>
> I have a class called Member, it has member function called
> vallidateForm(), i try to pass it a $HTTP_POST_VARS array it
> looks like this:
>
>
> clas Member{
> var $HTTP_POST_VARS;
> function vallidateForm ($HTTP_POST_VARS){
> echo $HTTP_POST_VARS['frmUsername'];
> }
> }
>
> $user = new Member;
> if($action=="register"){
> global $HTTP_POST_VARS;
> $user->vallidateForm($HTTP_POST_VARS);
> }else{
> $user->displayForm();
> }
> ?>
>
> But i can't acces $HTTP_POST_VARS['frmUsername'] within the function
>
>
> Thank You very much
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]