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:

Here is the code:

<!-- Begin Range Slider -->
<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>
<br />

<!-- Display current value -->
function getInputValue(){
// Selecting the input element and get its value
var inputVal = document.getElementById("customRange").value;
// Displaying the value
class Variables {
public static void main(String[] args) {

How do I move the contents of inputVal into $php_variable

Options: ReplyQuote

Written By
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.