PHP form generation class