diff --git a/includes/update-email.php b/includes/update-email.php
new file mode 100644
index 0000000..6f8e655
--- /dev/null
+++ b/includes/update-email.php
@@ -0,0 +1,3 @@
+
';
+?>
\ No newline at end of file
diff --git a/preferences.php b/preferences.php
index 2e8cd80..c2c6762 100644
--- a/preferences.php
+++ b/preferences.php
@@ -1,6 +1,25 @@
Change e-mail and / or password
';
+if (!empty($_POST['usermail'])) {
+ //this section contains code to update the users e-mail address, maybe via an include?
+ include_once ('includes/update-email.php');
+} else {
+ //should get rid of this whole else statement, or use it to display an error?
+ echo 'this should probably be the !empty section instead
';
+ echo 'the post usermail vaiable should be blank: ' . $_POST['usermail'] . ' <- Is there a blank spot to the left?
';
+}
+echo '
'; +var_dump($_SESSION); +echo '