/* 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"); /* The statment below simply deletes the plan, indicated by the id passed in as a REQUEST property. */ if(request.ID != null) { project.lock(); database.execute("delete from benefit_plan where benefit_plan.plan_ID = " + request.ID); project.unlock(); } redirect("plans.htm");