Update req_user_info.php
This commit is contained in:
parent
8b7ae678b4
commit
47658ab3b7
@ -14,6 +14,7 @@ if (($user_email == null) && ($user_logged_in == true)) {
|
|||||||
$email = trim($_POST['user_em_id']);
|
$email = trim($_POST['user_em_id']);
|
||||||
$updateEmail = $UserClass->input_user_email($email, $user_id);
|
$updateEmail = $UserClass->input_user_email($email, $user_id);
|
||||||
if ($updateEmail) {
|
if ($updateEmail) {
|
||||||
|
$_SESSION['email'] = $email;
|
||||||
redirect_to("index.php?msg=Email updated as $email successfully.&type=success");
|
redirect_to("index.php?msg=Email updated as $email successfully.&type=success");
|
||||||
}
|
}
|
||||||
redirect_to("index.php?msg=Email could not be updated.&type=warning");
|
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>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user