<?php require 'funkcje/RegisterMgr.php'; $class = new RegisterMgr(); if (!empty($_POST)) { if (!empty($_POST['login']) && !empty($_POST['pass']) && !empty($_POST['pass2']) && $_POST['pass'] == $_POST['pass2'] && !empty($_POST['mail'])) { $msg = $class->register($config, $_POST['login'], $_POST['pass'], $_POST['mail']); } else { $msg = 'Wypełnij wszystkie pola / upewnij się, że hasło jest identyczne'; } } echo $msg; ?> <form action='?action=register' method='post'> <table> <tr> <td>login:</td> <td><input type='text' name='login' value='<?php echo $_POST['login']; ?> '/></td> </tr> <tr> <td>hasło:</td> <td><input type='password' name='pass' value='<?php echo $_POST['pass']; ?> '/></td> </tr> <tr>