Note this DEMO passes a variable (and it's value) via a POST ternary operation. In other words, the name of the variable and it's value is being passed through POST form.
ID = 0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Query Post</title>
<link rel="stylesheet" href="../css/styles.css">
</head>
<body>
<div class="page">
<p class="nav"><a href="../../index.php">Home</a></p>
<?php
error_reporting(E_ALL); // set error reporting to all
// get the id from a POST operation via POST ternary operator
$id = isset($_POST['id']) ? $_POST['id'] : 0;
?>
<h1>Austin's Query Demo via POST</h1>
<p>
Note this DEMO passes a variable (and it's value) via a POST ternary operation.
In other words, the name of the variable and it's value is being passed
through POST form.
</p>
<p>
ID = <?php echo($id); ?>
</p>
<form action="" method="POST">
<input type="hidden" name="id" value="<?php echo($id - 1); ?>">
<input type="submit" name="submit" value="DECREASE">
</form>
<br>
<form action="" method="POST">
<input type="hidden" name="id" value="<?php echo($id + 1); ?>">
<input type="submit" name="submit" value="INCREASE">
</form>
<hr>
<h2>Code follows</h2>
<div class="code"><?php highlight_file(__FILE__); ?></div>
<p class="nav nav-foot"><a href="../../index.php">Home</a></p>
</div>
</body>
</html>