Advertisement
Guest User

zad1

a guest
Mar 18th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. --------plik 1.html--------
  2. <body>
  3. <form action="1.php" method="post">
  4. <input type="text" name="password" placeholder="wpisz hasło" autofocus />
  5. </form><input type="submit" name="wyslij" value="Wyślij" />
  6. <br> <br>
  7. </body>
  8. --------plik 1.php--------
  9. <?php
  10. $password=$_post['password'];
  11. $dobre= '/^([0-9]+)$/';
  12. $srednie='/^([0-9]+)$/';
  13. if(preg_match($dobre,$password))
  14. echo "<font color=green>DOBRE</font><br>";
  15. elseif(preg_match($srednie,$password))
  16. echo "<font color=blue>ŚREDNIE</font><br>";
  17. elseif
  18. echo "<font color=yellow>SŁABE</font>";
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement