Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $reg_login = '/^[a-z0-9_-]{3,16}$/';
- $reg_password = '/^[a-z0-9_-]{3,16}$/';
- //logowanie
- session_start();
- if (isset($_REQUEST['zaloguj'])) {
- $login = $_REQUEST['login'];
- $haslo = $_REQUEST['password'];
- try {
- if (filter_var($login, FILTER_VALIDATE_REGEXP, array(
- "options" => array("regexp" => $reg_login))) &&
- filter_var($haslo, FILTER_VALIDATE_REGEXP, array(
- "options" => array("regexp" => $reg_password)))) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement