/* 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"); cursor = database.cursor("select * from employee where ssn = " + client.ssn + "", true); cursor.next(); Employee Information
namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true); namecursor.next();
Current Enrollee:write(namecursor.name);


Please enter your general employee information below. Information such as address, telephone number, fax number, etc. is requested.
} else { } } else { } } else { } } else { } } else { } } else { } } else { } } else { } } else { Female }
Street Address: if (cursor.address == null) {
City: if (cursor.city == null) {
State: if (cursor.state == null) {
Zip Code: if (cursor.zip == null) {
Home Phone: if (cursor.hphone == null) {
Work Phone: if (cursor.wphone == null) {
Birthdate: if (cursor.birthdate == null) {
Occupation: if (cursor.occupation == null) {
Gender: if (cursor.gender == "m") { Male } else { Male }
if (cursor.gender == "f") { Female
Marital Status: if (cursor.marital == "m") { Married } else { Married }
if (cursor.marital == "s") { Single } else { Single }
if (cursor.marital == "o") { Other } else { Other }

Return to Main Menu