I have a JAVA variable displaying the result of a range slider.
How do I move the contents of the JAVA variable into a PHP variable for storage in table?
Here is the web page:
https://www.database39.com/stand.php
Here is the code:
<!-- Begin Range Slider -->
<form>
<div class="mt-4">
<input type="range" class="form-range" id="customRange" width="66%" value="0" min="-100" max="100"/>
<div id="result"><b></b></div>
<button type="button" onclick="getInputValue();">Set Your Number and Click Me</button>
</form>
</div>
<br />
<!-- Display current value -->
<script>
function getInputValue(){
// Selecting the input element and get its value
var inputVal = document.getElementById("customRange").value;
// Displaying the value
alert(inputVal);
}
class Variables {
public static void main(String[] args) {
System.out.println(inputVal);
}
}
</script>
How do I move the contents of inputVal into $php_variable