Slider value to PHP and then to MySQL?
Greeting community,
I am a beginner and I don't know, how to from PHP access to the slide value, that I can store in a MySQL database?
- //1. Slider
- echo "\n<div data-role=\"collapsible\" data-theme=\"b\" data-content-theme=\"b\">";
echo "<h3>$row->Menge $row->Einheit $row->Bezeichnung</h3>";
echo "<p>";
echo "<label for=\"slider-fill\">$row->Einheit $row->Bezeichnung</label>";
echo "<input type=\"range\" name=\"slider1\" id=\"slider1\" value=\"10\" min=\"0\" max=\"30\" />";
echo "</p>";
echo "</div>";
- //2. Slider
- echo "\n<div data-role=\"collapsible\" data-theme=\"b\" data-content-theme=\"b\">";
echo "<h3>$row->Menge $row->Einheit $row->Bezeichnung</h3>";
echo "<p>";
echo "<label for=\"slider-fill\">$row->Einheit $row->Bezeichnung</label>";
echo "<input type=\"range\" name=\"slider2\" id=\"slider2\" value=\"10\" min=\"0\" max=\"30\" />";
echo "</p>";
echo "</div>";
- ...
- $write = "UPDATE produkte Set Value = <Value from Slider 1> WHERE ID = "1";
$update = mysql_query($write);
- $write = "UPDATE produkte Set Value = <Value from Slider 2> WHERE ID = "2";
$update = mysql_query($write);
Can you tell me, how the code for "<Value from Slider 1>"?
Thank you!
Michael