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 '

Change e-mail and / or password



'; + +// listing all session variables currently set for debugging purposes +echo '
';
+var_dump($_SESSION);
+echo '


'; +// delete the above 3 lines when done + +echo '
'; +echo ''; +echo ''; +echo '
Update e-mail address

'; include_once ('footer.php'); ?> \ No newline at end of file