Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Strona muzyczna</title>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="styl.css">
- </head>
- <body>
- <div id="baner"><h1><b>KUCZE MOJE POLE!</b></h1>
- </div>
- <div id="lewy"><h2>Tu kupisz NIC!</h2>
- <ol>
- <li>Nic</li>
- <li>Nic</li>
- <li>I nic</li>
- </ol>
- </div>
- <div id="prawy">
- <h2>Rejestracja</h2>
- <form action = "#" method = "POST" >
- <p><b>Dane osobowe</b></p>
- <label>Imię</label><br><input type="text" name="imie"/></br>
- <label>Nazwisko</label><br><input type="text" name="nazwisko"/></br>
- <label>Email</label><br><input type="text" name="email"/></br>
- <label>Haslo</label><br><input type="password" name="haslo"/></br>
- <input type="reset" value="Wyczysc"><input type="submit" value="Zarejestruj">
- </form>
- </div>
- <?php
- $servername = 'localhost';
- $username = 'root';
- $password = '';
- $database = 'baza';
- $connect = mysqli_connect($servername, $username, $password, $database);
- $imie = $_POST['imie'];
- $nazwisko = $_POST['nazwisko'];
- $email = $_POST['email'];
- $haslo = $_POST['haslo'];
- echo '<p>konto</p>'.$_POST['imie'].' '.$_POST['nazwisko'].'<p>zostało zarejestrowane w bazie</p>';
- $zapytanie1 = 'insert into uzytkownicy(imie, nazwisko, email, haslo) values ($imie, $nazwisko, $email, $haslo)';
- mysqli_query($connect,$zapytanie1);
- //create user 'user1'@
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement