I'd say that the approach eoghain/paulnaj describe is pretty common, as long as the project isn't a large one.
In a more complex application, perhaps an online store driven by a large database of varied products, it might be better to have seperate form pages/action pages/included function pages ...
... or, I guess you could just get into OOP; but, maybe you already are...