Public paste
the button dont work why ?
By: glenn | Date: Sep 12 2007 16:40 | Format: PHP | Expires: never | Size: 594 B | Hits: 1296

  1. <?php
  2.  
  3.  
  4. if(isset($_POST['submit']))
  5. {
  6.  
  7. $checklogin="SELECT * FROM leden WHERE naam='". $_POST['naam'] ."' AND wachtwoord='". $_POST['wachtwoord'] ."'";
  8. $check=mysql_query($checklogin);
  9. $checkfinal=mysql_num_rows($check);
  10.  
  11. if($checkfinal==1){
  12. echo "ingelogd";
  13. } else {
  14. echo "wachtwoord of gebruikersnaam fout";
  15. }
  16. }
  17.  
  18. ?>
  19.  
  20. <form method="POST">
  21. <table>
  22. <tr>
  23. <td>naam:</td>
  24. <td><input type="text" name="naam"></td>
  25. </tr>
  26. <tr>
  27. <td>wachtwoord:</td>
  28. <td><input type="password" name="password"></td>
  29. </tr>
  30. </table>
  31. <input type="button" name="submit" value="submit">
  32. </form>