Bad idea to simply ignore errors of any kind, good idea to understand their meaning.
First you must realize that only checked checkboxes pass name/value pairs as unchecked checkboxes pass nothing to PHP. That said, the variable will only be set if the checkbox is checked.
Assuming you have two checkboxes each being named x (btw, consider using a radio button or better explain the problem), follow ahundiak's second advice and try this:
<?php
if (isset($x)) {
echo "This checkbox named x was checked, its value is: $x";
} else {
echo "The checkbox was not checked";
}
?>
The error you got was because it was unchecked so you were using a variable that didn't even exist. Not a major deal, you could simply ignore it, but please consider not ignoring it.
Also, consider not relying on register_globals and instead using a superglobal.
P.S. During my last preview of this post I notice that ahundiak just posted something, well, I'll post this too π