Guest User

Untitled

a guest
Apr 2nd, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['insert'])) {
  3. $hostname="localhost";
  4. $username="";
  5. $password="fifY6bowPpCv";
  6. $databaseName="";
  7.  
  8. $uName = $_POST['username'];
  9. $pass = $_POST['password'];
  10.  
  11. $connect = msqli_connect($hostname, $username, $password, $databaseName);
  12. $query = "INSERT INTO users(username, password) VALUES (uName, pass)";
  13.  
  14. mysqli_close($connect);
  15. }
  16. ?>
  17.  
  18. <!DOCTYPE html>
  19. <html>
  20.  
  21. <body>
  22. <form action="index.php" method="post">
  23. <input type="text" name="username"> <br> <br>
  24. <input type="password" name="password"> <br> <br>
  25. <input type="submit" name="submit">
  26. </form>
  27. </body>
  28.  
  29. </html>
Add Comment
Please, Sign In to add comment