diff --git a/preferences.php b/preferences.php index cdb9cb2..54566af 100644 --- a/preferences.php +++ b/preferences.php @@ -6,6 +6,14 @@ if (!empty($_POST['useremail'])) { //this section contains code to update the users e-mail address, maybe via an include? include_once ('includes/update-email.php'); } + +if (!empty($_POST['oldpass'])) { + echo 'if the oldpass is set, execute code here (this line will go away from preferences.php!)
'; + include_once ('includes/update-password.php'); +} else { + echo 'if post oldpass is NOT set, then this else statement can go away.
'; +} + echo '

Change e-mail or password

'; // listing all session variables currently set for debugging purposes @@ -14,9 +22,33 @@ var_dump($_SESSION); echo '
'; // delete the above 3 lines when done +// update e-mail address form echo '
'; echo ''; echo ''; -echo '
Update e-mail address

'; +echo '

'; + +// update password form +echo << + + + + + + +
Old Password
New password
Verify password
+ +UPDPASS; include_once ('footer.php'); ?> \ No newline at end of file