Here's the PHP version (with hidden fields) of the vending machine program.

As always:

This is another clear-cut assignment, so that's good.