How should i Send Arduino Data to php webserver

I use a device that Arduino uno wifi rev2, and i try to send php webserver a data that i input some String like phone number and people number.
my code is…

#include <WiFiNINA.h>
#include "arduino_secrets.h" 
#include <SPI.h>
#include <string.h> 
#define _BUFFERSIZE 100

char ssid[] = SECRET_SSID;       
char pass[] = SECRET_PASS;      

int status = WL_IDLE_STATUS;

char server[] = "172.30.1.46";

String digit;
String person;
String pdata;
String postVariable = "data=";

WiFiClient client;

 void setup()
{
  Serial.begin(9600); 
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to Network named: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, pass);
    delay(500);
  }
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());
  IPAddress ip = WiFi.localIP();
  IPAddress gateway = WiFi.gatewayIP();
  Serial.print("IP Address: ");
  Serial.println(ip);
}

void loop()
{
 if(Serial.available()){                                     
    String inString = Serial.readStringUntil('\n');           

    int index_1 = inString.indexOf('#');
    int index_2 = inString.length();
    String digit = inString.substring(0, index_1);
    String person = inString.substring(index_1+1, index_2);
    
    int s = digit.length();
    Serial.println(s);
        if(s == 11){
          if(inString.indexOf("#") > 10 )
          {
            if(person.indexOf("#") < 0){
               Serial.println(digit);
               Serial.println(person);
               pdata = postVariable + digit + " " + person;
            }
            else{        
               Serial.println("Wrong Number");
               }
          }
          else{
           Serial.println("Insert #");
          }
        }
    else{
    Serial.println("Wrong Number");
    }
 
 if (client.connect(server, 80)) 
 {
    client.println("POST /post.php HTTP/1.1");
    client.println("Host: 172.30.1.46");
    client.println("Content-Type: application/x-www-form-urlencoded;");
    client.print("Content-Length: ");
    client.println(pdata.length());
    client.println();
    client.println(pdata);
  }
  if (client.connected()) {
  
    client.stop();
  }
  delay(1500);
 }
}

and i made a my personal Webserver by Bitnami.
i make a PHP File like ‘post’
and PHP code is…

<?php
$time = time();
$digitT = $_POST["data"];
$file = 'data.html';
$sata = $time." - ".$digitT;
file_put_contents($file, $sata);
print($sata);
?>

this PHP on my server is work. but after implement Arduino code, input data, then Nothing show up on php…
how should i do…?