Making new module

I was wondering if anyone knows how I could make a Save button or a good code for the php file, and the template.. on a module I am making.. I basically need something like the admin centers, pilot profile edit’s save button…