I have a php script and there is a class that is in an include. The original code had a username and password hard-coded, and when I try to switch it to the username and password that was passed in from a form on the page before, I get the following error...
Fatal error: Class 'Source' not found in C:\Inetpub\wwwroot...\class_ua_mvrz.php on line 92
I saw a post for the same error, but that was a missing semicolon and that is not the case here.
function setLoginInputs() {
// Get form sourceLogin object
// WORKS:
$this->formInputs['txtPassword']['value'] = "username";
$this->formInputs['txtUserName']['value'] = "myemail@address.com";
// WISH IT WORKED:
$this->formInputs['txtPassword']['value'] = $_POST['ROUsername'];
$this->formInputs['txtUserName']['value'] = $_POST['ROPassword'];
return true;
}