(Press to enlarge)

When you squeeze the dispenser, the valve is pushed upwards by the pressure of the product, opening the outflow to allow the required amount of the product to be dispensed. When you stop squeezing, the outflow is closed off and the dispenser is filled up from the pack. When not activated, the valve inside the dispenser seals off the outflow so it doesn't drip.