Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).on("click", "#submit", function(event)
- {
- var user = document.getElementById("name").value;
- var pwd = document.getElementById("pwd").value;
- $.post("userExistCheck.php",
- {
- userName: user,
- userPass: pwd
- },
- function(result)
- {
- if (result == "0")
- {
- window.location.replace("Moment/momentApp.php");
- }
- else if (result == "1")
- {
- alert("Password is incorrect!");
- }
- else
- {
- alert("User does not exist!");
- }
- });
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement