simple and short.
PHP:
$test = $_REQUEST['test'];
$query = "UPDATE right1 SET right2 = '$test' WHERE right = rightprint";
mysqli_query($db, $query);
HTML:
<form class="input-group" action="site_is_here" method="post">
<input id="test" type="text" value="">
<input id="post" type="button" value="Submit">
</form>
Basically, I am trying to update a PHP database when a user submits information into the form, it should change the data in the database.
The problem is that I don't know how to assign the value of the input (once submitted) to the $test variable, it keeps telling me that this is undefined index or variable. (All database connections are working, dont worry about that)