You forgot the method
attribute on your <form>
tag.
Thing is, by default, the method is set to get
, and since your code expects post
data, it just doesn’t save it to the variable.
<form action="Add_Chemical_Inventory.php" method="post"></form>
solved Selection from a drop down menu isn’t being inserted to assigned variable [closed]