Passing variables via HTML into a PHP function

How would one pass a parameter from a PHP result into a HTML button then into another PHP function.

What I personally have is a table of records and next to the record is a link to another HTML page. The page will contain more detailed information of the record selected at first. E.g. Client then once clicked, that clients information.

This Function gets all the companies in a row along with a button (to beside it in another column