daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest May 17th, 2018 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form id="theForm" action="/your/login" method="post">
  2.   <input type="hidden" id="hiddenUsername" name="username"/>
  3.   <input type="hidden" id="hiddenPassword" name="password"/>
  4.   <input type="submit" value="Login"/>
  5. </form>
  6.  
  7. <script type="text/javascript" language="JavaScript">
  8.   $("#theForm").submit(function() {
  9.     $("#hiddenUsername").val($("#username").val());
  10.     $("#hiddenPassword").val($("#password").val());
  11.   });
  12.   $("#username,#password").keypress(function(e) {
  13.     if (e.which == 13) {
  14.       $("#theForm").submit();
  15.     }
  16.   });
  17. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top