1
I have this input that is hidden and disabled:
<input type="text" disabled="" id="valorMascara" class="oculto" name="valorMascara">
there are two inputs type radio that sends value pro hidden input, I want to take the value of this input in real time and play within a variable in PHP, WITHOUT SUBMITTING, WITHOUT SENDING THE FORM, I WANT TO TAKE IT IN REAL TIME.
There is no way to change PHP variable via client-side.
– Sam
The answers given already give the solution: you will have to spend a request for the server treat the value of the variable and return the response to the browser. Javascript will fill in the field with no need to reload the page. Everything, theoretically, "in real time".
– ShutUpMagda
Inside the "PHP variable" has no way, PHP runs on the server side and when the page renders PHP has already been loaded and finished. ie there is no more direct interaction. web is this, requests and HTTP responses. As I explained in https://answall.com/a/168915/3635 and https://answall.com/a/102460/3635
– Guilherme Nascimento