I need to add a key (with no value) to $_POST when I submit a form. This key is not from the form. I tried
$_POST = array(“$ankor”=>0);
thinking that the submit would just add the form data to the end of $_POST, but no joy as in:
echo '<form action="adj_width.php" method="post">';
$ankor = "a" . $counter;
$counter = $counter + 1;
echo '<a name="form_' . $ankor . '"></a>';
echo 'Width:<input name="' . $id . '" type="text" />';
$_POST = array($ankor=>0);
echo '<input type="submit" value="Submit" />';
echo '</form>';
How do I the key (with no value) from $ankor to $_POST?