if (request.jobid != null) { // create an updatable cursor on the SEEKER table. if (!dbCheck()) { redirect("../error.htm?error=dbfail"); } cursor = database.cursor("select * from jobs where jobs.jobid = '" + request.jobid + "'", true); cursor.next(); cursor.title = request.title; cursor.desc = escString(request.desc); // store the processed string only (see lib/sqlstr.js) cursor.mineduc = request.mineduc; cursor.minyearsexp = request.minyearsexp; cursor.skills = escString(request.skills); // store the processed string only (see lib/sqlstr.js) cursor.salarylow = request.salarylow; cursor.salaryhigh = request.salaryhigh; cursor.lcity = request.lcity; cursor.lstate = request.lstate; cursor.lcountry = request.lcountry; cursor.contactname = request.contactname; cursor.contactemail = request.contactemail; cursor.updateRow("jobs"); cursor.close(); redirect("confirm.htm?type=jobs"); } else { // redirect to error page }