diff --git a/includes/title-update.php b/includes/title-update.php
index db790d8..2ef5891 100644
--- a/includes/title-update.php
+++ b/includes/title-update.php
@@ -22,5 +22,4 @@ if (isset($_POST['deltitle'])) {
echo 'Title updated, redirecting!';
header ("Refresh:1; url=titlemanager.php");
}
-//echo 'Return to title manager'; //this line needs to go away soon
?>
\ No newline at end of file
diff --git a/includes/titleranks-add.php b/includes/titleranks-add.php
index 4e53e45..30dc1bf 100644
--- a/includes/titleranks-add.php
+++ b/includes/titleranks-add.php
@@ -10,6 +10,8 @@ mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
# investigate if we can put multiple input boxes and loop through them to insert into the database
# https://stackoverflow.com/questions/34469482/how-to-insert-multiple-inputs-into-the-database-using-the-power-of-php
+unset($_SESSION['title']);
+
if (isset($_SESSION['tid'])) {
$_POST['tid'] = $_SESSION['tid'];
}
@@ -47,7 +49,7 @@ echo '
';
echo 'Here are the currently associated title ranks, starting with rank 1: ';
-echo '
stnameid
titlenameid
stname
stpoints
strank
';
+echo '
If anything looks off, please fix it!
';
+echo 'Return to title manager';
?>
\ No newline at end of file
diff --git a/includes/titleranks-editor.php b/includes/titleranks-editor.php
new file mode 100644
index 0000000..4b748e4
--- /dev/null
+++ b/includes/titleranks-editor.php
@@ -0,0 +1,4 @@
+ ';
+echo 'Return to title manager';
+?>
\ No newline at end of file
diff --git a/titlemanager.php b/titlemanager.php
index 6875b95..ccdc32e 100644
--- a/titlemanager.php
+++ b/titlemanager.php
@@ -32,6 +32,9 @@ if ($_SESSION['admin'] == 1) {
} else if ($_POST['title'] == "titleranksubmit") {
// this section doesn't require human interaction
include_once ('includes/titleranks-submit.php');
+ } else if ($_POST['title'] == "modsubtitle") {
+ // included file contains all code to edit a title rank
+ include_once ('includes/titleranks-editor.php');
} else {
unset($_SESSION['tid']);
echo 'Add titles ';
@@ -40,8 +43,7 @@ if ($_SESSION['admin'] == 1) {
echo '
';
echo 'Add title ranks and points to ';
- echo 'Edit / Delete subtitle & points (code goes here)
';
+ echo '
';
// now to view the last 5 title entries in the database
echo 'Here is the last 5 titles entered into the database, newest entry is on top: ';
echo '