/* Check to make sure we are connected to the database before allowing access to the home page. If not connected, go connect and initialize; otherwise, welcome the user.\ */ if(!database.connected()) redirect("init.htm"); Coverage Choice
namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true); namecursor.next();
Current Enrollee:write(namecursor.name);


Please choose your desired coverage choice.
cursor = database.cursor("select * from benefit_plan"); primarycursor = database.cursor("select * from primary_coverage where employee_ssn = " + client.ssn + "", true); primarycursor.next(); if (primarycursor.employee_ssn != 0 && primarycursor.plan_code != 0) { client.action = "update"; } else { client.action = "insert"; }
Coverage Choice
Return to Main Menu