As the friend Leo Caracciolo said, Javascript in this case runs in the user's browser, this means that it is only possible to send information to the php through HTTP requests.
It would work like this:
The php send the pro-browser information >
The user enters the data - >
Javascript sends the information back to php via Ajax- >
Javascript receives the treated data
Ajax allows HTTP requests to be sent without reloading the screen, an ajax function receives the response from the php as if we were accessing the page, that is, it receives everything that would be displayed on the screen if we accessed through the browser normally.
Create a php page that does the treatment you need and echo the result for ajax to capture. More or less like this:
HTML:
<input name="estado-cliente">
<button>
enviar
</button>
JS:
$(document).ready(function(){
//Voce precisa de um evento que envie a requisição
$('button').click(function(){
$.post("SUAPAGINA.PHP?estado-cliente=" + $('name="estado-cliente"').val(), function(dados){
//faça o que quiser com os dados
})
})
})
PHP:
<?php
$dados = $_POST["estado-cliente"];
// trate os dados como desejado e de um echo no resultado, pode usar JSON tbm, mas assim é mais simples.
echo $resultado;