User::AddUser($_POST['login'], $_POST['password']);
class User {
public static function AddUser($login, $password) {
$sql = "INSERT INTO users (login, password) VALUES (:login, :password)";
$statment = $db->prepare($sql);
$statment->bindParam(":login", $login);
$statment->bindParam(":password", $password);
$statment->execute();
}