<?php include('cfg.php'); if($_POST['creat'] == 1 ) { else{ if(mysql_num_rows(mysql_query("select * from users where user_login='".htmlspecialchars($_POST["login"]."'")))) { $query = ('INSERT INTO user (id, login, pw, email) } } } else { echo " <link rel='Stylesheet' type='text/css' href='style.css'> <form action='register.php' method=POST> <input class='input' type='text' name='login' maxlength='12'> - Nazwa użytkownika <br /> <br /> <input class='input' type='password' name='password' maxlength='8'> - Haslo <br /> <br /> <input class='input' type='text' name='email'> - Adres email <br /> <br /> <input class='input' type='submit' value='Rejestruj'> <input type='hidden' name='creat' value='1'> </form> "; } ?>