Guest User

Untitled

a guest
Dec 17th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. $("input[name='enviar_login']").click(function(){
  2. var datos = $(".formulario_login").serialize();
  3. $.ajax({
  4. method:"POST",
  5. url:"http://g-t-e.260mb.net/login/login.php",
  6. data:datos,
  7. success:function(result){
  8. if (result=="") {
  9. $(".login p").css({
  10. "background":"rgba(255,0,0,.2)",
  11. "border-radius":"10px 10px 0 0"
  12. });
  13. }else if(result!=""){
  14. $(location).attr("href","http://g-t-e.260mb.net/login/" + result);
  15. }
  16. }
  17. });
  18. return false;
  19. });
  20.  
  21. $("input[name='enviar_login']").click(function(){
  22. var datos = $(".formulario_login").serialize();
  23. $.ajax({
  24. method:"POST",
  25. url:"http://g-t-e.260mb.net/login/login.php",
  26. data:datos,
  27. success:function(result){
  28. if (result=="") {
  29. $(".login p").css({
  30. "background":"rgba(255,0,0,.2)",
  31. "border-radius":"10px 10px 0 0"
  32. });
  33. }else if(result!=""){
  34. $(location).attr("href","http://g-t-e.260mb.net/login/" + result);
  35. }
  36. }
  37. });
  38. return false;
  39. });
Add Comment
Please, Sign In to add comment