How to get the value of a range input and pass it to a PHP variable ?
<input type=range min=0 max=100 value=50 name="price">
How to get the value of a range input and pass it to a PHP variable ?
<input type=range min=0 max=100 value=50 name="price">
The same way you get the value of any other input.
Put it in a form, submit the form, then use $_GET['fieldname']
(or $_POST
).
index.php
<form action="check.php" method="POST">
<input type="range" min="0" max="100" value="50" name="price">
<button type="submit">Submit</button>
</form>
check.php
<?php
echo $_POST['price'];
?>