// Security check - make sure they've logged in. If not, send them // to the LOGIN page. securityCheck(client.valid, client.usertype, "employer", "../login.htm"); // Dynamically generate the body string according to the attributes in the // configuration file specified as the argument of dynBody() bodystr = dynBody("settings.cfg"); if(!dbCheck()) { redirect("../error.htm?error=dbfail"); } cursor = database.cursor("select * from jobs where jobid = '" + request.jobid + "'"); cursor.next(); // Initialize the cursor. cursor.deleteRow("jobs"); redirect("emphome.htm"); cursor.close();