
[html<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Dokument bez tytułu</title>
</head>
<body>
<form method="get" action="">
<label>nick</label>
<input type="text" name="nick"><br>
<label>Hasło</label>
<input type="password" name="haslo"><br>
<input type="submit" value="Wyslij">
</form>
<?php
extract($_GET);
$db=mysqli_connect('localhost','root','','formularz');
$wynik=mysqli_query($db,"INSERT INTO `klienci` (`nick`, `haslo`) VALUES ('$nick', '$haslo');");
?>
</body>
</html>][/html]