Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("#add_err").css('display', 'none', 'important');
- $("#login").click(function(){
- username=$("#username").val();
- password=$("#password").val();
- $.ajax({
- type: "POST",
- url: "login.php",
- data: "name="+username+"&pwd="+password,
- success: function(html){
- if(html=='true') {
- window.location="index.php";
- }
- else {
- $("#add_err").css('display', 'inline', 'important');
- $("#add_err").html("$error");
- }
- }
- });
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement