Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <form method="post" action="index2.php">
- Podaj imie rezysera<input type="text" name="imie"><br>
- Podaj nazwisko rezysera<input type="text" name="nazw"><br>
- <input type="submit" value="Wyślij">
- </form>
- <?php
- if($_SERVER["REQUEST_METHOD"]=="POST"){
- $imie=$_POST['imie'];
- $nazw=$_POST['nazw'];
- }
- $polaczenie=mysqli_connect('localhost','root','','filmoteka');
- $sql=(mysqli_query($polaczenie,"insert into rezyserzy values('$imie','$nazw')"));
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement