When you submit a form you have the choice to use GET or POST method.
then you access them via
$xyz=$GET['foo_id']
or
$xyz=$POST['foo_id']
In addition you can do
$xyz=$_REQUEST['foo_id']
which will access both GET and POST submissions
GET submissions show in url bar, POST do not
When you go to a page using
echo '<a href="stock_chemical.php?foo=' . $row['bar'] . '">Stock</a>';
then that will be received as a GET submission
it can also be accessed via $_REQUEST