tried to use php for posting, but didnt want to redo the whole page in php

added another page to simulate adding a constraint