In your HTML form you specify values of what to return if the checkboxes are checked:
value="A"
value="B"
value="C"
So, your code should not be using "true" but rather checking the value returned. For instance, change this:
if($_POST['A']==true){
to this:
if ('A' == $_POST['A']) {
or better:
if (isSet($POST['A']) && 'A' == $POST['A']) {
Working with forms in PHP tutorial (checkbox page):
http://codewalkers.com/tutorials/12/4.html
Please note that the header() with location command does not redirect right there and then when it's executed. It actually redirects when your script ends or an exit is reached. So, to ensure no logic flow problems in your script, you should have an exit right after every header() with location to force redirection to occur immediately.
🙂