htm to php
Add in amount searching logic