Db_Add(); ListMenu(); # } # else # { # $_SESSION['SystemMessage']='Code already on file!! Choose another.'; # AddForm(); # } break; case 'Cancel Add': CurrentNumberRecords(); GetVariablesFromSession(); ListMenu(); break; case 'List Records': ListRecords(); break; case 'Back': header("Location: {$CallingProgram}"); break; default: GetVariablesFromSession(); ListMenu(); break; } } else { InitializeProgram(); GetCommonVariablesFromSession(); ListMenu(); } echo "\n</body>\n</html>";
function InitializeVariables() { global $db, $user, $serverhost, $password, $Add, $Edit, $Delete, $Search, $Start, $Expiry; global $NumDiveSiteCoursesRecords, $DiveSiteCourse, $DiveSiteId, $DiveSiteCourseEnteredBy, $DiveSiteCourseDateEntered; global $DiveSiteCity, $DiveSiteProvince, $DiveSiteCountry, $DiveSiteName, $DiveSiteMajorName; global $DiveSiteMinorName, $DiveSiteExactLat, $DiveSiteExactLong, $DiveSiteCourseTitle, $DiveSiteCourseNoteKeywords; global $DiveSiteCourseWhyNotes, $DiveSiteCourseURLFileInfo; $DiveSiteCourse = 'TBD'; $DiveSiteId = ''; $DiveSiteCourseEnteredBy = ''; $DiveSiteCourseDateEntered = ''; $DiveSiteCity = ''; $DiveSiteProvince = ''; $DiveSiteCountry = ''; $DiveSiteName = ''; $DiveSiteMajorName = ''; $DiveSiteMinorName = ''; $DiveSiteExactLat = ''; $DiveSiteExactLong = ''; $DiveSiteCourseTitle = ''; $DiveSiteCourseNoteKeywords = ''; $DiveSiteCourseWhyNotes = ''; $DiveSiteCourseURLFileInfo = ''; GetCommonVariablesFromSession(); return; }