Hi guys, i need selected option value of a drop down list will refresh index page and change data with row by ID from Database which user choose. It is test for imagine.
hint: number of id = number of question
look at DB - Click Here
i have some code which can maybe help, thanx for every help...
<form action="yourpostedtopage.php" method="post">
<select name="yourselectbox" id="yourselectbox">
<option value="something1">Option 1</option>
<option>Option 2</option>
</select>
<input name="submitbutton" type="submit" value="submit" />
</form>
yourpostedtopage.php
...
$selectedoption = $_POST['yourselectbox'];
...
echo $selectedoption;
mysql_query(".... WHERE column = '$selectedoption' ... ")
...