Mam problem z deklarowaniem zmiennych. Mój skrypt php w ogóle ich nie widzi, więc i nie wstawia do bazy. Wstawia tylko same puste rekordy. Możecie mnie naprowadzić gdzie robię błąd

Oto kod:
<!DOCTYPE html> <html> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="css/styl_admin.css" type="text/css"> <title>Panel Administratora</title> <head> </head> <body> <?php try { $dbh = new PDO('mysql:host=localhost;dbname=log_cdr', 'root', 'slawek132'); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO login (id, imie, nazwisko, email) VALUES ('".$_POST["id_admin"]."','".$_POST["id_imie_admin"]."','".$_POST["id_nazwisko"]."','".$_POST["id_email"]."')"; if ($dbh->query($sql)) { } else{ } $dbh = null; } catch(PDOException $e) { } //} ?> <div> <input type="button" onclick="window.location.href = 'pan_log.php'" value="Home" style="font-weight:bold;"/> </div> <div id="nowhas_leb" style="font-weight:bold; font-size:3em;"> <form> <label for="nowhas_leb"> <text style ="float:center"> Panel Administratora </text> </label> <br /> </form> <form> </div> <div id="div_log"> <!--<div id="id" style="font-weight:bold;">--> <form action="" method="post"> <label for="id"> <text style ="float:left"> Id </text> </label> <br /> </form> <form action="" method="post"> <input type="text" name="id_admin" placeholder="Wprowadź imię"/> </form> <!--</div>--> <!--<div id="imie" style="font-weight:bold;">--> <form action="" method="post"> <label for="imie"> <text style ="float:left"> Imię </text> </label> <br /> </form> <form action="" method="post"> <input type="text" name="id_imie_admin" placeholder="Wprowadź imię"/> </form> <!--</div>--> <!--<div id="nazwisko" style="font-weight:bold;">--> <form action="" method="post"> <label for="nazwisko"> <text style ="float:left"> Nazwisko </text> </label> <br /> <input type="text" name="id_nazwisko_admin" placeholder="Wprowadź nazwisko"/> </form> <!--</div>--> <!--<div id="email" style="font-weight:bold;">--> <label for="email"> <text style ="float:left"> </text> </label> <br /> <input type="text" name="id_email_admin" placeholder="Wprowadź Email"/> <!--</div>--> <!--<div id="haslo" style="font-weight:bold;">--> <label for="haslo"> <text style ="float:left"> Hasło </text> </label> <br /> <input type="text" name="id_haslo_admin" placeholder="Podaj hasło"/> <!--</div>--> <div id="zap_has" style="font-weight:bold;"> <input type="button" name="button" onclick="window.location.href = 'pan_has.php'" value="Zmień hasło" style="font-weight:bold;"/> <input type="button" name="button" value="Zapisz dane do bazy" style="font-weight:bold;"/> </div> </form> </div> </body> </html>
A to błędy:
Notice: Undefined index: id_admin in C:\xampp\htdocs\CDR\pan_admin.php on line 25
Notice: Undefined index: id_imie_admin in C:\xampp\htdocs\CDR\pan_admin.php on line 25
Notice: Undefined index: nazwisko in C:\xampp\htdocs\CDR\pan_admin.php on line 25
Notice: Undefined index: email in C:\xampp\htdocs\CDR\pan_admin.php on line 25