Yeah, I guess it 'tis; kinda surprising that you'd need to ask, but maybe your search engine foo isn't up to snuff?
define("HELPINGMODE", "OK");
// form.html
<html>
<title>Do you?</title>
<body>
<form method="POST" action="handler.php">
<h2>Do you, or don't you?</h2>
Yup!<input type="checkbox" name="yes" value="yes"><br />
Nope...<input type="checkbox" name="no" value="no"><br />
<input type="submit" name="submit" value="Answer!">
</form>
</body>
</html>
<?php
// handler.php--- handles the data passed from "form.html"
if ($_POST['yes']=="yes" && !$_POST['no']) {
echo "Oh, you do, do ya?";
} elseif ($_POST['no']=="no" && !$_POST['yes']) {
echo "I didn't think so!";
} elseif ($_POST['yes']=="yes" && $_POST['no']=="no") {
echo "You can't have it both ways!!!";
} else {
echo "System error. Hire a better programmer!";
}
?>
HTH,