php - $.ajax success function returns null -


I have a basic login form set and I am sending two variables (login + password) using the AJAX request A separate page which, accordingly, checks status and gives back. ('Submit', function () {var key = $ (this), url = "textlogin.php", type = that.attr ('method'), data = {}, that.find ('[name ] '(Value (index, value) {var key = $ (this), name = that.attr (' name '), value = that.val (); data [name] = value;}); $ .jax ({url: url, type: type, data: data, breakthrough: work (feedback) {if (response == "") {$ ('# login_err'). Html ("its tap");} and {$ ('# Login_order') .html (feedback);}}}); refund;});

is not working and the success function always returns empty space. The code was working fine until I logged AJAX and jquery dialog . I tried: 1. Setting up content-type 2. Setting dataType 3. Using $ .post and what not.

Here is sample code for Ajax.

  $ Ajax ({Url: "login.php?", Data: "user name =" + username "and password =" + password, success: function (data) {}});   

Please try it out.

If you are using Mozilla Firefox, please add Firebug, then please add Firebug. After installing Firebug, open it. You can now find the Console tab. enable it. Now when you run AJAX you can see it here.

And suppose that if you pass a straight array, then use this function because PHP is a better way to use the implode function.

Please answer me if this works.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -