/* 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"); project.lock(); database.execute("update employee set address = '" + request.address + "', city = '" + request.city + "', state = '" + request.state + "', zip = '" + request.zip + "', hphone = '" + request.hphone + "', wphone = '" + request.wphone + "', marital = '" + request.marital + "', gender = '" + request.gender + "', birthdate = '" + request.birthdate + "', occupation = '" + request.occupation + "' where ssn = " + client.ssn + ""); database.execute("update status set cs2 = 'yes' where employee_ssn = " + client.ssn + ""); project.unlock(); redirect("areas.htm");