Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#login-submit").click(function() {
- user = $("#user").val();
- pass = $("#pass").val();
- var dataString = "user="+user+"&pass="+pass;
- var linkString = "index.html#home";
- if (user == "" || pass == "") {
- alert("Please fill in all fields");
- }
- else {
- $.ajax({
- type: "POST",
- url: "http://www.weddingindustryinsider.com/VAWEAPP/login.php",
- data: {user: user, pass: pass},
- cache: false,
- success: function(result) {
- if (result = "1") {
- alert("Login Sucess.");
- setTimeout(location.href = linkString,1000);
- }
- else { alert("Username or Password incorrect. Please try again."); }
- },
- });
- }
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement