An if statement that is giving me fits

I have a simple form that asks for personal information. formMemberType is a drop down menu with (Customer, Distributor, No) as options. formMemberNumber is a field where they can type in a number. So when I run my test code, I designate that I’m a customer and then type in a bogus number. When I click Submit, the page refreshes with an error saying I didn’t provide a customer number. For debugging I also print the value of formMemberType and formMemberNumber at the top of the resulting page, so I can clearly tell the variable is being passed successfully. However, the error message, with its included Debug information, shows that formMemberNumber is zero. I have gone through my code and proven that nowhere is $formMemberNumber being assigned as zero. Any ideas on why this is happening?

Thanks!

if ($formMemberType == “Customer” && !$formMemberNumber) {

$formError= “Yes”;
$errorMessage .= “<li>You did not provide your customer number. Debug information $formMemberType and $formMemberNumber.</li>”;

} elseif ($formMemberType == “Distributor” && !$formMemberNumber) {

$formError= “Yes”;
$errorMessage .= “<li>You did not provide your distributor number.</li>”;

}

I found the problem. Thank you anyway.