if (isset($_GET['email']) && $_GET['email'] == "changed") { echo "<div class='message good'>Your email address " . "has been changed.</div>"; } else { if (isset($_GET['email']) && $_GET['email'] == "failed") { echo "<div class='message bad'>There was an error " . "changing your email address.</div>"; } } if (isset($_GET['password']) && $_GET['password'] == "changed") { echo "<div class='message good'>Your password " . "has been changed.</div>"; } elseif (isset($_GET['password']) && $_GET['password'] == "nomatch") { echo "<div class='message bad'>The two passwords " . "did not match. Try again!</div>"; } if (isset($_GET['delete']) && $_GET['delete'] == "failed") { echo "<div class='message bad'>There was an error " . "deleting your account.</div>"; } list($userID, $v) = $users->retrieveAccountInfo(); ?> <h2>Your Account</h2> <form method="post" action="db-interaction/users.php"> <div> <input type="hidden" name="userid" value="<?php echo $userID; ?> " /> <input type="hidden" name="action" value="changeemail" /> <input type="text" name="username" id="username" /> <label for="username">Change Email Address</label>