I am storing data from a form to user data in Concrete5.
I am pulling the user data successfully:
$u = new User();
$ui = UserInfo::getByID($u->getUserID());
$testtype = $ui->getAttribute('TestType','display');
This return what I expect. But when I try to evaluate it using...
} else if ($testtype == "English Adult Male") {
...it doesn't trigger.
I echo the output I am pulling, and notice the html put a <br>
after the echo of the variable. I have tried to pass the output through trim
but the same comes out.
What am I doing wrong?