$_SESSION['form_memory']['field1'] = $_POST['firstname'];
         $_SESSION['form_memory']['field2'] = $_POST['lastname'];
         $_SESSION['form_memory']['field3'] = $_POST['birthdate'];
         $_SESSION['form_memory']['field12'] = $_POST['iqcs_num'];
         $_SESSION['form_memory']['field4'] = $_POST['year_of_1st_rappel'];
         $_SESSION['form_memory']['field5'] = $_POST['rap_count_offset_proficiency'];
         $_SESSION['form_memory']['field6'] = $_POST['rap_count_offset_operational'];
         $_SESSION['form_memory']['field7'] = $_POST['gender'];
         $_SESSION['form_memory']['field8'] = $_POST['spotter'];
         $_SESSION['form_memory']['field9'] = $_POST['uploadedfile'];
         $_SESSION['form_memory']['field10'] = $_POST['spot_count_offset_proficiency'];
         $_SESSION['form_memory']['field11'] = $_POST['spot_count_offset_operational'];
         try {
             $hrap = new hrap();
             $hrap->create($_POST['firstname'], $_POST['lastname'], $_POST['gender'], $_POST['birthdate'], $_POST['iqcs_num'], $_POST['year_of_1st_rappel'], $_POST['rap_count_offset_proficiency'], $_POST['rap_count_offset_operational'], $_POST['spotter'], $_POST['spot_count_offset_proficiency'], $_POST['spot_count_offset_operational']);
             $hrap->add_to_roster($_GET['crew'], $_SESSION['current_view']['year']);
             $_SESSION['form_memory'] = "";
             //Clear the form memory if all operations were successful
             show_roster_modification_menu();
         } catch (Exception $e) {
             show_add_new_hrap_form();
             echo "<div class=\"error_msg\">" . $e->getMessage() . "</div>\n";
         }
     } else {
         // Display the 'add hrap' form
         show_add_new_hrap_form();
     }
     break;
     /*---------------------------------------------------------------*/
 /*---------------------------------------------------------------*/
 case "add_existing_hrap":