>>how does one set a variable
Using '='.
So PHP doesn't like using a variable that hasn't first been set:
if (!$notes) {
echo $message;
}
So one should have a line that declares up top, perhaps:
function McResults() {
$notes = false;
global $HTTP_GET_VARS;
if (isset($HTTP_GET_VARS["notes"])) $notes = $HTTP_GET_VARS["notes"];
if (!$notes) {
if (isset($_GET["notes"])) $notes = $_GET["notes"];
}
if (!$notes) {
global $HTTP_POST_VARS;
if (isset($HTTP_POST_VARS["notes"])) $notes =
$HTTP_POST_VARS["notes"];
if (!$notes) {
if (isset($_POST["notes"])) $notes = $_POST["notes"];
}
}
$this->notes = $notes;
}
And having that line up top:
$notes = false;
means that PHP won't complain?