Guest User

Untitled

a guest
Jul 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $(function() {
  2. $("#submit_login").click(function() {
  3. var username = $("#email").val();
  4. var password = $("#password").val();
  5. var dataString = username + password;
  6.  
  7. if(username && password != '')
  8. {
  9. $.ajax({
  10. type: "POST",
  11. url: "/design/index.php",
  12. data: dataString,
  13. success: function(){
  14. alert("Data sent!");
  15. }
  16. });
  17. }
  18. return false;
  19. });
  20. });
  21.  
  22. <form action="" method="post">
  23. <input type="text" name="uname" id="email" class="input_login_2" value="e-mail adress" onclick="clickclear(this, 'e-mail adress')"
  24. onblur="clickrecall(this,'e-mail adress')">
  25. <br>
  26. <input type="password" name="pword" id="password" class="input_login" value="password" onclick="clickclear(this, 'password')"
  27. onblur="clickrecall(this,'password')">
  28. <br>
  29. <input type="submit" name="submit_login" class="input_submit" value="login!" id="submit_login">
  30. </form>
Add Comment
Please, Sign In to add comment