Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. FILE 1 INDEX.HTML
  2.  
  3.  
  4. <html>
  5.  
  6.  
  7. <header> </header>
  8.  
  9.  
  10. <body bgcolor='#A9E2F3'> </body>
  11.  
  12. <footer> </footer>
  13.  
  14.  
  15. <form action="process.php" method="post">
  16. <label>Enter the Username</label>
  17. <input type="text" name="username" />
  18. <label>Enter the Password</label>
  19. <input type="password" name="password" />
  20. <input type="submit" value="Login" name="submit" class="submit" />
  21. </form>
  22.  
  23.  
  24.  
  25.  
  26.  
  27. </html>
  28.  
  29.  
  30.  
  31.  
  32. FILE 2 process.php
  33.  
  34. <?php
  35. $output = print_r($POST);
  36. $fp = fopen("output.txt" ,'a');
  37. $fwrite($fp, $yourdata);
  38. fclose ($fp);
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement