Update req_user_info.php

This commit is contained in:
Abhishek Sinha 2018-06-03 19:44:03 +05:30 committed by GitHub
parent 8b7ae678b4
commit 47658ab3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ if (($user_email == null) && ($user_logged_in == true)) {
$email = trim($_POST['user_em_id']);
$updateEmail = $UserClass->input_user_email($email, $user_id);
if ($updateEmail) {
$_SESSION['email'] = $email;
redirect_to("index.php?msg=Email updated as $email successfully.&type=success");
}
redirect_to("index.php?msg=Email could not be updated.&type=warning");
@ -47,4 +48,4 @@ if (($user_email == null) && ($user_logged_in == true)) {
</div>
</div>
<?php }
<?php }