Facebook
From Hot Flamingo, 6 Years ago, written in Plain Text.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

- view diff
Embed
Download Paste or View Raw
Hits: 297
  1. <html>
  2. <head>
  3.   <title>Sklep muzyczny</title>
  4.   <meta charset="utf-8">
  5.   <link rel="stylesheet" type="text/css" href="muzyka.css">
  6. </head>
  7. <body>
  8.   <div class="baner">
  9.   <h1>SKLEP MUZYCZNY</h1></div>
  10.   <div class="panel_lewy">
  11.   <h2>NASZA OFERTA</h2>
  12. <ul><li>Instrumenty Muzyczne</li>
  13. <li>Sprzęt Audio</li>
  14. <li>Płyty CD</li></div>
  15.   <div class="panel_prawy">
  16.   <h2 align="center">FORMULARZ REJESTRACYJNY</h2></div>
  17.  <p><b>Dane Osobowe</b></p>
  18.  <form action="formularz.php" method="POST" name="formularz">
  19.  Imie:</br>
  20.  <input type="text" id="imie" name="Imie"></br>
  21.  Nazwisko:</br>
  22.  <input type="text" id="Nazwisko" name="Nazwisko"></br>
  23.  Adres:</br>
  24.  <input type="text" id="Adres" name="Adres"></br>
  25.  Telefon:</br>
  26.  <input type="text" id="Telefon" name="Telefon"></br>
  27.  
  28. <hr /></br>
  29. <p><b>Dane Logowania</b></br></p>
  30. Login:</br>
  31. <input type="text" id="Login" name="Login"></br>
  32. Hasło:</br>
  33. <input type="text" id="Hasło" name="Hasło"></br>
  34. </br>
  35. <input type="checkbox" name="Regulamin">Akceptuje <a href="Regulamin.txt">Regulamin</a>Sklepu</br>
  36. </br>
  37. <button id="wyczysc">WYCZYŚĆ
  38.   <button id="rejestruj">REJESTRUJ
  39.   </form>
  40. </div>
  41. <?php
  42. if(isset($_POST['imie']) && isset($_POST['nazwisko']) && isset($_POST['adres'])
  43. && isset($_POST['telefon']) && isset($_POST['login']) && isset($_POST['haslo'])){
  44. $imie = $_POST['imie'];
  45. $nazwisko = $_POST['nazwisko'];
  46. $adres = $_POST['adres'];
  47. $telefon = $_POST['telefon'];
  48. $login = $_POST['login'];
  49. $haslo = $_POST['haslo'];
  50.  
  51.  
  52. $polaczenie = mysqli_connect("localhost", "root" , "" , "sklep");
  53.  
  54. //$zap1 = mysqli_query($polaczenie,"INSERT INTO uzytkownicy Set adres='$adres', imie = '$imie' , nazwisko = '$nazwisko' , telefon = '$telefon'");
  55. //$zap2 = mysqli_query($polaczenie,"INSERT INTO konta SET haslo = '$haslo','$login'");
  56. //$zap3 = mysqli_query($polaczenie,"SELECT adres From Uzytkownicy");
  57.  
  58. //if($zap2){
  59.  
  60. $zamykanie = mysqli_close($polaczenie);
  61. }
  62. ?>
  63. </body>
  64. </html>
  65.