It's like you have mixed up the 'order_id' with 'order_nr'.
(就像您将'order_id'与'order_nr'混淆了一样。)
The name value attribute is 'order_id' so when you try to get it it is (名称值属性是“ order_id”,因此当您尝试获取它时)
$_POST['order_id'] not `$_POST['order_nr']`
It means that either you should say
(这意味着您应该说)
$order_nr = pg_escape_string($_POST['order_id']);
In order to use the variable into the insert statement and then
(为了将变量使用到插入语句中,然后)
$query = " INSERT INTO serviss (order_nr, place, service, vards, uzvards, email, veids, passw, save_info, papildaprikojums, defekts)
VALUES ('$order_nr', '$place', '$service', '$vards', '$uzvards', '$email', '$veids', '$passw', '$papildaprikojums', '$save_info', '$defekts') " ;
or you shoud say
(否则你应该说)
$order_id = pg_escape_string($_POST['order_id']);
And then
(然后)
$query = " INSERT INTO serviss (order_nr, place, service, vards, uzvards, email, veids, passw, save_info, papildaprikojums, defekts)
VALUES ('$order_id', '$place', '$service', '$vards', '$uzvards', '$email', '$veids', '$passw', '$papildaprikojums', '$save_info', '$defekts') " ;