Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. $.ajax({
  2. type: "POST",
  3. url: "panel.aspx",
  4. data: username + ";" + pw,
  5. success: function (result) {
  6. $("#midiv").html(result);
  7.  
  8. }
  9. });
  10.  
  11. $.ajax({
  12. type: 'POST',
  13. url: 'panel.aspx',
  14. data: {
  15. 'username=' + uname "&password=" + pword,
  16. //Note:- uname and pword are variables and not text
  17. },
  18. success: function (result) {
  19. $("#midiv").html(result);
  20.  
  21. }
  22. });
  23.  
  24. Dim uname, pword
  25. uname = Request.Form("username")
  26. pword = Request.Form("password")
  27.  
  28. $.ajax({
  29. type: "POST",
  30. url: "panel.aspx",
  31. data: {
  32. username: "foo",
  33. pw: "bar"
  34. },
  35. success: function (result) {
  36. $("#midiv").html(result);
  37. }
  38. });
  39.  
  40. $.ajax({
  41. type: "POST",
  42. url: "panel.aspx",
  43. data: 'username=' + username + "&password=" + pw,
  44. success: function (result) {
  45. $("#midiv").html(result);
  46.  
  47. }
  48. });
  49.  
  50. $.ajax({
  51. type: "POST",
  52. url: "panel.aspx",
  53. data: {username: username, password: pw}
  54. }).done(function(result) {
  55. $("#midiv").html(result);
  56. });
  57.  
  58. $user = $_POST['username'];
  59. $pw = $_POST['password'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement