// site (optional) if (isset($_POST['site']) && trim($_POST['site']) != '') { $n['site'] = trim($_POST['site']); } // no errors? if ($errors == '') { // fill in a couple more things $n['reportinguser'] = '******'; $n['reportingip'] = getenv('REMOTE_ADDR'); //$irtdb->addFollowup($n['incidentid'],$n); } } // get incident followup $followups = $irtdb->getFollowup($_REQUEST['i']); // get status $status = htmlentities($irtdb->getStatus($_REQUEST['i'])); // loop through the followups and collect useful info $hotlist = ''; // this will be the preformatted hotlist foreach ($followups as $f) { if ($f['type'] == 'hotlist') { $hotlist .= $f['body'] . "\n"; } } // we'll use this to display values from $i // neatly, with proper escaped html function gv($field) { global $i; if (!isset($i[$field])) { return;