Skip to content

Commit

Permalink
updated manage profile
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGuy007 committed Apr 20, 2022
1 parent 3f5a22a commit 1eec758
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manage_profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,23 @@
if ($_GET["error"] == "empty_input")
echo "<script>document.getElementById('msg').innerHTML = '*Fill in all fields!';</script>";

if ($_GET["error"] == "invalid_uid")
else if ($_GET["error"] == "invalid_uid")
echo "<script>document.getElementById('msg').innerHTML = '*Choose a proper username!';</script>";

if ($_GET["error"] == "passwords_dont_match")
else if ($_GET["error"] == "passwords_dont_match")
echo "<script>document.getElementById('msg').innerHTML = '*Passwords doesn't match!';</script>";

if ($_GET["error"] == "stmtfailed")
else if ($_GET["error"] == "stmtfailed")
echo "<script>document.getElementById('msg').innerHTML = '*Something went wrong, please try again!';</script>";

if ($_GET["error"] == "username_taken")
else if ($_GET["error"] == "username_taken")
echo "<script>document.getElementById('msg').innerHTML = '*Username already taken!';</script>";

if ($_GET["error"] == "none")
else if ($_GET["error"] == "none")
{
echo "<script>document.getElementById('msg').className = 'green-text';</script>";
echo "<script>document.getElementById('msg').innerHTML = 'Profile updated!';</script>";
}
}

?>
Expand Down
Binary file added product_images/mx-master-logitech.webp
Binary file not shown.

0 comments on commit 1eec758

Please sign in to comment.