MySQL Forums
Forum List  »  PHP

Convert JAVA variable into PHP variable
Posted by: Parker Shannon
Date: March 22, 2021 05:27AM

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

Options: ReplyQuote


Subject
Written By
Posted
Convert JAVA variable into PHP variable
March 22, 2021 05:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.