Hi,
[...]
> BUT, if you leave either or both of the checkboxes empty (don't check
them)
> I get the following error:
>
> Warning: Undefined variable: CategoriesONE in
> C:\inetpub\wwwroot\PrintUserForm.php on line 71
> Warning: Undefined variable: CategoriesTWO in
> C:\inetpub\wwwroot\PrintUserForm.php on line 73
Not really an error. Don't worry about that. As it says it is only a
Warning.
If you set error_reporting to 7 or something below 15 (all) those warnings
will disappear. The reason why your attempt with ELSE didn't work is that
the variable is not created if the checkbox is not checked. So to achive
what
you want use isset()
if (isset($CatONE)) {
echo "One!!";
} else { // if $CatONE is not set == not existant
echo "No Type set!";
}
hope it helps
Johannes
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]