namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true);
namecursor.next();
Current Enrollee:
write(namecursor.name);
This form provides HR with your reason for using the Benefits Enrollment
System today. For example, if you enrolling for the first time, choose the
radio buttons corresponding to "Enrollment" and "1. New Enrollee."
/* 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");
trans_cursor = database.cursor("select * from transaction where ssn = " + client.ssn + "", true);
trans_cursor.next();
if (trans_cursor.ssn != client.ssn) {
client.action = "insert";
} else {
client.action = "update";
}