"; } if ($uemail == "") { $error = 1; PRINT "The following error occured with your request for help: You did not enter an e-mail address.
"; } if ($ID < 0) { $error = 1; PRINT "A very unusual error occured. Contact your sysadmin.
"; } if ($contents == "") { $error = 1; PRINT "The following error occured with your request for help: You did not enter any problem description.
"; } /* End error checking */ $contents = htmlspecialchars($contents); if ($error != 1) { PRINT "Please check that the job you are about to submit is correct. If it is not, use the provided links to re-edit it."; } else { PRINT "
Errors occured with your request for help. Your only option is to re-edit the job.
"; } ?>
\n"; PRINT ""; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; ?>
prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $computername = $result["name"]; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } PRINT "
Server: $computername ($ID)
"; PRINT "
Priority: $priority"; PRINT "
Assigned to: $user"; $htmlcontents = stripslashes(nl2br($contents)); PRINT "
Problem Report:
$htmlcontents

"; if ($error != 1) { //$contents = "By: $uname ($uemail)\n$contents"; PRINT "

\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT "\n"; PRINT ""; PRINT "
\n"; } PRINT "
"; commonFooter(); ?>