If have a login script with username and password. I also have an $info array, the form's action is validate.php which is a self executing class : i.e.
$index = new validate;
class validate {
var...
function validate() {
global $info, $db_driver, $HTTP_POST_VARS;
.. the rest of the code.
}
}
$info is called from the main page and it is used with no problem, but when I try to call it from the validate script it doesn't work. I also have another class called $db_driver which is also used in the main page but when called in the validate it doesn't work.
I have set the global variables in PHP.INI and I never had a problem like this before with them.
$info is an array() and $db_driver is a class. If you have read the Invision Board source code this works similarly, they have a huge class called $ibforums ($info to me) which stores information and a $DB class ($db driver to me).