Есть форма
<div style="top: 15px;position: relative;">
<form action="forma.insert.php" id="forms2" method="post">
<input type="text" name="IP" placeholder="IP адрес" style="position: relative;width: 123px;"/>
<input type="text" name="NamePC" placeholder="Имя PC" style="position: relative; width: 96px;left: -3px;"/>
<input type="text" name="pass" placeholder="Пароль" style="position: relative; width: 83px;left: -5px;"/>
<input type="text" name="passadm" placeholder="Пароль adm" style="position: relative; width: 104px;left: -8px;"/>
<input type= "submit" value= "Отправить">
</form>
</div>
ОТправляется в
<?php
require_once 'login.php';
$db_server = mysqli_connect($db_hostname, $db_username, $db_password);
mysqli_query($db_server,"SET NAMES utf8");
mysqli_select_db($db_server, $db_database)
$IP = addslashes( trim($_POST['IP']) );
$NamePC = addslashes( trim($_POST['NamePC']) );
$pass = addslashes( trim($_POST['pass']) );
$passadm = addslashes( trim($_POST['passadm']) );
$query = mysqli_query ($db_server, "INSERT INTO vls VALUES (INET_NTOA('".$IP ."'), '".$NamePC."', '".$pass."', '".$passadm."')");
print_r($_POST['IP']);
print_r($_POST['NamePC']);
print_r($_POST['pass']);
print_r($_POST['passadm']);
?>
print_r выводит : 192.168.0.86ST-23123213123dfwef
Но в бд не записывается нечего.