Advertisement
Guest User

Untitled

a guest
Apr 7th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. <?php
  3. \\contact to databases
  4. ?>
  5.  
  6.  
  7. <html>
  8. <body>
  9. <form action="" method="POST">
  10. username:<input type="text" name="username">
  11. <br/>
  12. password:<input type='password' name='password'>
  13. <br/>
  14. <input type='submit' name='submit' value='login'>
  15. </form>
  16. </body>
  17. </html>
  18.  
  19. <?php
  20.  
  21. if(isset($_POST['submit'])) {
  22. $username=$_POST['username'];
  23. $password=$_POST['password'];
  24. $query=(' \\ select your table ');
  25. $result= mysqli_query($connect,$query);
  26. if(! $result) {
  27. echo 'welcome';
  28. }
  29. else {
  30. echo 'error in your data';
  31. }
  32. }
  33.  
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement