/* 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");
namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true);
namecursor.next();
Current Enrollee:
write(namecursor.name);
Below is the current beneficiary information that you have entered. Please
make the appropriate changes as necessary.
cursor = database.cursor("select * from beneficiary where employee_ssn = " + client.ssn + "", true);
dep_rel_cursor = database.cursor("select * from dep_rel");
second_dep_rel_cursor = database.cursor("select * from dep_rel");
cursor.next();
if (cursor.employee_ssn == null && cursor.name1 == null && cursor.relationship1 == null && cursor.name2 == null && cursor.relationship2 == null) {
client.action = "insert";
} else {
client.action = "update";
}