3
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by eburlea
1
class Login {
  private $good_username;
  private $good_password;
  public function Authentification () {
    $this->good_username = "myusername";
    $this->good_password = "mypassword";    
  }
}
0

Thank you for reply. I tried your code and also it does not work. The problem is that the code does not work when I use the declarations: public, protected, private. When I remove them, it works, as in the example below.

class Login {
  var $good_username;
  var $good_password;
  function Authentification () {
    $this->good_username = "myusername";
    $this->good_password = "mypassword";    
  }
}
1

@pritaeas
You are right. I'm using PHP Version 4.3.6. I will update it. Thank you.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.