Mar 01, 2006 03:13
I'm a geek to have even though about this this way.
$value) {
if($value) {
$_POST["$key"] = 1;
}
else {
$_POST["$key"] = 0;
}
}
if($_POST['tired'] == 0 || $_POST['class'] == 0 || $_POST['skip'} == 1) {
$p = 1;
$q = ptoq($p);
}
else {
$p = 0;
$q = ptoq($p);
}
print <<
\$p$p
\$p$q
_RESULTS;
}
if($_POST['submit'] != 1 || $_POST['again'] != 0) {
print <<
Are you tired?
Do you have class early tomorrow?
Can you afford to skip that class?
Have you set your alarm?
_FORM;
}
?>