Advertisement
Guest User

Untitled

a guest
Sep 17th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // Gets user entered details from form.
  2. if (isset($_POST['username'])) {
  3. $username=$_POST['username'];
  4. } else {
  5. $username=null;
  6. }
  7. if (isset($_POST['rawpassword'])) {
  8. $rawpassword=$_POST['rawpassword'];
  9. } else {
  10. $rawpassword=null;
  11. }
  12.  
  13. // Hashes password through SHA-1.
  14. $password = sha1($rawpassword);
  15.  
  16. echo "$username";
  17. echo "$rawpassword";
  18. echo "$password";
  19.  
  20. if (isset($_POST['']))
  21.  
  22. if (!isset($_POST['']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement