I'm getting insane with this.
I've the following:
login.php
class MyClass
{
public $var = "I'm a class property!";
}
main.php
if (isset($_POST['submit'])) {
include('login.php');
$obj = new MyClass;
echo $obj->var();
}
My question is: Why this doesn't work? It doesn't appear anything on the screen.

New Topic/Question
Reply




MultiQuote






|