Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------plik 1.html--------
- <body>
- <form action="1.php" method="post">
- <input type="text" name="password" placeholder="wpisz hasło" autofocus />
- </form><input type="submit" name="wyslij" value="Wyślij" />
- <br> <br>
- </body>
- --------plik 1.php--------
- <?php
- $password=$_post['password'];
- $dobre= '/^([0-9]+)$/';
- $srednie='/^([0-9]+)$/';
- if(preg_match($dobre,$password))
- echo "<font color=green>DOBRE</font><br>";
- elseif(preg_match($srednie,$password))
- echo "<font color=blue>ŚREDNIE</font><br>";
- elseif
- echo "<font color=yellow>SŁABE</font>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement