<html>
<head>
<title>Sklep muzyczny</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="muzyka.css">
</head>
<body>
<div class="baner">
<h1>SKLEP MUZYCZNY</h1></div>
<div class="panel_lewy">
<h2>NASZA OFERTA</h2>
<ul><li>Instrumenty Muzyczne</li>
<li>Sprzęt Audio</li>
<li>Płyty CD</li></div>
<div class="panel_prawy">
<h2 align="center">FORMULARZ REJESTRACYJNY</h2></div>
<p><b>Dane Osobowe</b></p>
<form action="formularz.php" method="POST" name="formularz">
Imie:</br>
<input type="text" id="imie" name="Imie"></br>
Nazwisko:</br>
<input type="text" id="Nazwisko" name="Nazwisko"></br>
Adres:</br>
<input type="text" id="Adres" name="Adres"></br>
Telefon:</br>
<input type="text" id="Telefon" name="Telefon"></br>
<hr /></br>
<p><b>Dane Logowania</b></br></p>
Login:</br>
<input type="text" id="Login" name="Login"></br>
Hasło:</br>
<input type="text" id="Hasło" name="Hasło"></br>
</br>
<input type="checkbox" name="Regulamin">Akceptuje <a href="Regulamin.txt">Regulamin</a>Sklepu</br>
</br>
<button id="wyczysc">WYCZYŚĆ
<button id="rejestruj">REJESTRUJ
</form>
</div>
<?php
if(isset($_POST['imie']) && isset($_POST['nazwisko']) && isset($_POST['adres'])
&& isset($_POST['telefon']) && isset($_POST['login']) && isset($_POST['haslo'])){
$imie = $_POST['imie'];
$nazwisko = $_POST['nazwisko'];
$adres = $_POST['adres'];
$telefon = $_POST['telefon'];
$login = $_POST['login'];
$haslo = $_POST['haslo'];
$zap1 = mysqli_query($polaczenie,"INSERT INTO uzytkownicy Set adres='$adres', imie = '$imie' , nazwisko = '$nazwisko' , telefon = '$telefon'");
$zap2 = mysqli_query($polaczenie,"INSERT INTO konta SET haslo = '$haslo','$login'");
$zap3 = mysqli_query($polaczenie,"SELECT adres From Uzytkownicy");
if($zap2){
echo "Konto ".$imie. " ".$nazwisko. " zostało zarejestrowane.";
}
?>
</body>
</html>
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}