signup($_POST['email']);
         } else {
             if ($function === 'verify-account') {
                 verify_account($_POST['username'], $_POST['password'], $_POST['verify_code']);
             } else {
                 if ($function === 'create-project') {
                     create_project();
                 } else {
                     if ($function == 'delete-project') {
                         delete_project($_POST['project_url_name']);
                     } else {
                         if ($function == 'save-project-name') {
                             save_project_name($_POST['project_id'], $_POST['new_value']);
                         } else {
                             if ($function == 'save-project-image') {
                                 save_project_image($_POST['project_id'], $_POST['new_value']);
                             } else {
                                 if ($function == 'save-project-spec') {
                                     save_project_spec($_POST['project_id'], $_POST['new_value']);
                                 } else {
                                     echo "There was a hole.";
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 return;
global $dbh;
switch ($_POST['option']) {
    case 1:
        first_step($dbh, $table_prefix);
        break;
    case 2:
        save_base_info($dbh, $table_prefix);
        break;
    case 3:
        save_awards($dbh, $table_prefix);
        break;
    case 4:
        delete_award($dbh, $table_prefix);
        break;
    case 5:
        save_project_image($dbh, $table_prefix);
        break;
    case 6:
        save_description($dbh, $table_prefix);
        break;
    case 7:
        save_user_details($dbh, $table_prefix);
        break;
    case 8:
        submit_project($dbh, $table_prefix);
        break;
}
function first_step($dbh1, $table_prefix)
{
    if ($stmt = $dbh1->prepare("INSERT INTO " . $table_prefix . "_projects (userID, terms_accepted, last_page_filled) VALUES (?, ?, ?)")) {
        $stmt->bindParam(1, $_SESSION['user_id']);